Improve doc & fix import ordering
[govpp.git] / binapi / udp_ping / udp_ping_rpc.ba.go
1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
2
3 package udp_ping
4
5 import (
6         "context"
7
8         api "git.fd.io/govpp.git/api"
9 )
10
11 // RPCService defines RPC service  udp_ping.
12 type RPCService interface {
13         UDPPingAddDel(ctx context.Context, in *UDPPingAddDel) (*UDPPingAddDelReply, error)
14         UDPPingExport(ctx context.Context, in *UDPPingExport) (*UDPPingExportReply, error)
15 }
16
17 type serviceClient struct {
18         conn api.Connection
19 }
20
21 func NewServiceClient(conn api.Connection) RPCService {
22         return &serviceClient{conn}
23 }
24
25 func (c *serviceClient) UDPPingAddDel(ctx context.Context, in *UDPPingAddDel) (*UDPPingAddDelReply, error) {
26         out := new(UDPPingAddDelReply)
27         err := c.conn.Invoke(ctx, in, out)
28         if err != nil {
29                 return nil, err
30         }
31         return out, nil
32 }
33
34 func (c *serviceClient) UDPPingExport(ctx context.Context, in *UDPPingExport) (*UDPPingExportReply, error) {
35         out := new(UDPPingExportReply)
36         err := c.conn.Invoke(ctx, in, out)
37         if err != nil {
38                 return nil, err
39         }
40         return out, nil
41 }