1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
7 api "git.fd.io/govpp.git/api"
10 // RPCService defines RPC service pg.
11 type RPCService interface {
12 PgCapture(ctx context.Context, in *PgCapture) (*PgCaptureReply, error)
13 PgCreateInterface(ctx context.Context, in *PgCreateInterface) (*PgCreateInterfaceReply, error)
14 PgEnableDisable(ctx context.Context, in *PgEnableDisable) (*PgEnableDisableReply, error)
17 type serviceClient struct {
21 func NewServiceClient(conn api.Connection) RPCService {
22 return &serviceClient{conn}
25 func (c *serviceClient) PgCapture(ctx context.Context, in *PgCapture) (*PgCaptureReply, error) {
26 out := new(PgCaptureReply)
27 err := c.conn.Invoke(ctx, in, out)
34 func (c *serviceClient) PgCreateInterface(ctx context.Context, in *PgCreateInterface) (*PgCreateInterfaceReply, error) {
35 out := new(PgCreateInterfaceReply)
36 err := c.conn.Invoke(ctx, in, out)
43 func (c *serviceClient) PgEnableDisable(ctx context.Context, in *PgEnableDisable) (*PgEnableDisableReply, error) {
44 out := new(PgEnableDisableReply)
45 err := c.conn.Invoke(ctx, in, out)