1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
8 api "git.fd.io/govpp.git/api"
11 // RPCService defines RPC service pg.
12 type RPCService interface {
13 PgCapture(ctx context.Context, in *PgCapture) (*PgCaptureReply, error)
14 PgCreateInterface(ctx context.Context, in *PgCreateInterface) (*PgCreateInterfaceReply, error)
15 PgEnableDisable(ctx context.Context, in *PgEnableDisable) (*PgEnableDisableReply, error)
18 type serviceClient struct {
22 func NewServiceClient(conn api.Connection) RPCService {
23 return &serviceClient{conn}
26 func (c *serviceClient) PgCapture(ctx context.Context, in *PgCapture) (*PgCaptureReply, error) {
27 out := new(PgCaptureReply)
28 err := c.conn.Invoke(ctx, in, out)
32 return out, api.RetvalToVPPApiError(out.Retval)
35 func (c *serviceClient) PgCreateInterface(ctx context.Context, in *PgCreateInterface) (*PgCreateInterfaceReply, error) {
36 out := new(PgCreateInterfaceReply)
37 err := c.conn.Invoke(ctx, in, out)
41 return out, api.RetvalToVPPApiError(out.Retval)
44 func (c *serviceClient) PgEnableDisable(ctx context.Context, in *PgEnableDisable) (*PgEnableDisableReply, error) {
45 out := new(PgEnableDisableReply)
46 err := c.conn.Invoke(ctx, in, out)
50 return out, api.RetvalToVPPApiError(out.Retval)