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