1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
8 api "git.fd.io/govpp.git/api"
11 // RPCService defines RPC service af_xdp.
12 type RPCService interface {
13 AfXdpCreate(ctx context.Context, in *AfXdpCreate) (*AfXdpCreateReply, error)
14 AfXdpDelete(ctx context.Context, in *AfXdpDelete) (*AfXdpDeleteReply, error)
17 type serviceClient struct {
21 func NewServiceClient(conn api.Connection) RPCService {
22 return &serviceClient{conn}
25 func (c *serviceClient) AfXdpCreate(ctx context.Context, in *AfXdpCreate) (*AfXdpCreateReply, error) {
26 out := new(AfXdpCreateReply)
27 err := c.conn.Invoke(ctx, in, out)
31 return out, api.RetvalToVPPApiError(out.Retval)
34 func (c *serviceClient) AfXdpDelete(ctx context.Context, in *AfXdpDelete) (*AfXdpDeleteReply, error) {
35 out := new(AfXdpDeleteReply)
36 err := c.conn.Invoke(ctx, in, out)
40 return out, api.RetvalToVPPApiError(out.Retval)