1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
8 api "git.fd.io/govpp.git/api"
9 vpe "git.fd.io/govpp.git/internal/testbinapi/binapi2001/vpe"
13 // RPCService defines RPC service l3xc.
14 type RPCService interface {
15 L3xcDel(ctx context.Context, in *L3xcDel) (*L3xcDelReply, error)
16 L3xcDump(ctx context.Context, in *L3xcDump) (RPCService_L3xcDumpClient, error)
17 L3xcPluginGetVersion(ctx context.Context, in *L3xcPluginGetVersion) (*L3xcPluginGetVersionReply, error)
18 L3xcUpdate(ctx context.Context, in *L3xcUpdate) (*L3xcUpdateReply, error)
21 type serviceClient struct {
25 func NewServiceClient(conn api.Connection) RPCService {
26 return &serviceClient{conn}
29 func (c *serviceClient) L3xcDel(ctx context.Context, in *L3xcDel) (*L3xcDelReply, error) {
30 out := new(L3xcDelReply)
31 err := c.conn.Invoke(ctx, in, out)
38 func (c *serviceClient) L3xcDump(ctx context.Context, in *L3xcDump) (RPCService_L3xcDumpClient, error) {
39 stream, err := c.conn.NewStream(ctx)
43 x := &serviceClient_L3xcDumpClient{stream}
44 if err := x.Stream.SendMsg(in); err != nil {
47 if err = x.Stream.SendMsg(&vpe.ControlPing{}); err != nil {
53 type RPCService_L3xcDumpClient interface {
54 Recv() (*L3xcDetails, error)
58 type serviceClient_L3xcDumpClient struct {
62 func (c *serviceClient_L3xcDumpClient) Recv() (*L3xcDetails, error) {
63 msg, err := c.Stream.RecvMsg()
67 switch m := msg.(type) {
70 case *vpe.ControlPingReply:
73 return nil, fmt.Errorf("unexpected message: %T %v", m, m)
77 func (c *serviceClient) L3xcPluginGetVersion(ctx context.Context, in *L3xcPluginGetVersion) (*L3xcPluginGetVersionReply, error) {
78 out := new(L3xcPluginGetVersionReply)
79 err := c.conn.Invoke(ctx, in, out)
86 func (c *serviceClient) L3xcUpdate(ctx context.Context, in *L3xcUpdate) (*L3xcUpdateReply, error) {
87 out := new(L3xcUpdateReply)
88 err := c.conn.Invoke(ctx, in, out)