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 PgCreateInterfaceV2(ctx context.Context, in *PgCreateInterfaceV2) (*PgCreateInterfaceV2Reply, error)
16 PgEnableDisable(ctx context.Context, in *PgEnableDisable) (*PgEnableDisableReply, error)
17 PgInterfaceEnableDisableCoalesce(ctx context.Context, in *PgInterfaceEnableDisableCoalesce) (*PgInterfaceEnableDisableCoalesceReply, error)
20 type serviceClient struct {
24 func NewServiceClient(conn api.Connection) RPCService {
25 return &serviceClient{conn}
28 func (c *serviceClient) PgCapture(ctx context.Context, in *PgCapture) (*PgCaptureReply, error) {
29 out := new(PgCaptureReply)
30 err := c.conn.Invoke(ctx, in, out)
34 return out, api.RetvalToVPPApiError(out.Retval)
37 func (c *serviceClient) PgCreateInterface(ctx context.Context, in *PgCreateInterface) (*PgCreateInterfaceReply, error) {
38 out := new(PgCreateInterfaceReply)
39 err := c.conn.Invoke(ctx, in, out)
43 return out, api.RetvalToVPPApiError(out.Retval)
46 func (c *serviceClient) PgCreateInterfaceV2(ctx context.Context, in *PgCreateInterfaceV2) (*PgCreateInterfaceV2Reply, error) {
47 out := new(PgCreateInterfaceV2Reply)
48 err := c.conn.Invoke(ctx, in, out)
52 return out, api.RetvalToVPPApiError(out.Retval)
55 func (c *serviceClient) PgEnableDisable(ctx context.Context, in *PgEnableDisable) (*PgEnableDisableReply, error) {
56 out := new(PgEnableDisableReply)
57 err := c.conn.Invoke(ctx, in, out)
61 return out, api.RetvalToVPPApiError(out.Retval)
64 func (c *serviceClient) PgInterfaceEnableDisableCoalesce(ctx context.Context, in *PgInterfaceEnableDisableCoalesce) (*PgInterfaceEnableDisableCoalesceReply, error) {
65 out := new(PgInterfaceEnableDisableCoalesceReply)
66 err := c.conn.Invoke(ctx, in, out)
70 return out, api.RetvalToVPPApiError(out.Retval)