1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
8 api "git.fd.io/govpp.git/api"
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)
17 type serviceClient struct {
21 func NewServiceClient(conn api.Connection) RPCService {
22 return &serviceClient{conn}
25 func (c *serviceClient) UDPPingAddDel(ctx context.Context, in *UDPPingAddDel) (*UDPPingAddDelReply, error) {
26 out := new(UDPPingAddDelReply)
27 err := c.conn.Invoke(ctx, in, out)
31 return out, api.RetvalToVPPApiError(out.Retval)
34 func (c *serviceClient) UDPPingExport(ctx context.Context, in *UDPPingExport) (*UDPPingExportReply, error) {
35 out := new(UDPPingExportReply)
36 err := c.conn.Invoke(ctx, in, out)
40 return out, api.RetvalToVPPApiError(out.Retval)