1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
7 api "git.fd.io/govpp.git/api"
10 // RPCService defines RPC service memclnt.
11 type RPCService interface {
12 APIVersions(ctx context.Context, in *APIVersions) (*APIVersionsReply, error)
13 GetFirstMsgID(ctx context.Context, in *GetFirstMsgID) (*GetFirstMsgIDReply, error)
14 MemclntCreate(ctx context.Context, in *MemclntCreate) (*MemclntCreateReply, error)
15 MemclntDelete(ctx context.Context, in *MemclntDelete) (*MemclntDeleteReply, error)
16 MemclntKeepalive(ctx context.Context, in *MemclntKeepalive) (*MemclntKeepaliveReply, error)
17 MemclntReadTimeout(ctx context.Context, in *MemclntReadTimeout) error
18 MemclntRxThreadSuspend(ctx context.Context, in *MemclntRxThreadSuspend) error
19 RPCCall(ctx context.Context, in *RPCCall) (*RPCCallReply, error)
20 RxThreadExit(ctx context.Context, in *RxThreadExit) error
21 SockInitShm(ctx context.Context, in *SockInitShm) (*SockInitShmReply, error)
22 SockclntCreate(ctx context.Context, in *SockclntCreate) (*SockclntCreateReply, error)
23 SockclntDelete(ctx context.Context, in *SockclntDelete) (*SockclntDeleteReply, error)
24 TracePluginMsgIds(ctx context.Context, in *TracePluginMsgIds) error
27 type serviceClient struct {
31 func NewServiceClient(conn api.Connection) RPCService {
32 return &serviceClient{conn}
35 func (c *serviceClient) APIVersions(ctx context.Context, in *APIVersions) (*APIVersionsReply, error) {
36 out := new(APIVersionsReply)
37 err := c.conn.Invoke(ctx, in, out)
44 func (c *serviceClient) GetFirstMsgID(ctx context.Context, in *GetFirstMsgID) (*GetFirstMsgIDReply, error) {
45 out := new(GetFirstMsgIDReply)
46 err := c.conn.Invoke(ctx, in, out)
53 func (c *serviceClient) MemclntCreate(ctx context.Context, in *MemclntCreate) (*MemclntCreateReply, error) {
54 out := new(MemclntCreateReply)
55 err := c.conn.Invoke(ctx, in, out)
62 func (c *serviceClient) MemclntDelete(ctx context.Context, in *MemclntDelete) (*MemclntDeleteReply, error) {
63 out := new(MemclntDeleteReply)
64 err := c.conn.Invoke(ctx, in, out)
71 func (c *serviceClient) MemclntKeepalive(ctx context.Context, in *MemclntKeepalive) (*MemclntKeepaliveReply, error) {
72 out := new(MemclntKeepaliveReply)
73 err := c.conn.Invoke(ctx, in, out)
80 func (c *serviceClient) MemclntReadTimeout(ctx context.Context, in *MemclntReadTimeout) error {
81 stream, err := c.conn.NewStream(ctx)
85 err = stream.SendMsg(in)
92 func (c *serviceClient) MemclntRxThreadSuspend(ctx context.Context, in *MemclntRxThreadSuspend) error {
93 stream, err := c.conn.NewStream(ctx)
97 err = stream.SendMsg(in)
104 func (c *serviceClient) RPCCall(ctx context.Context, in *RPCCall) (*RPCCallReply, error) {
105 out := new(RPCCallReply)
106 err := c.conn.Invoke(ctx, in, out)
113 func (c *serviceClient) RxThreadExit(ctx context.Context, in *RxThreadExit) error {
114 stream, err := c.conn.NewStream(ctx)
118 err = stream.SendMsg(in)
125 func (c *serviceClient) SockInitShm(ctx context.Context, in *SockInitShm) (*SockInitShmReply, error) {
126 out := new(SockInitShmReply)
127 err := c.conn.Invoke(ctx, in, out)
134 func (c *serviceClient) SockclntCreate(ctx context.Context, in *SockclntCreate) (*SockclntCreateReply, error) {
135 out := new(SockclntCreateReply)
136 err := c.conn.Invoke(ctx, in, out)
143 func (c *serviceClient) SockclntDelete(ctx context.Context, in *SockclntDelete) (*SockclntDeleteReply, error) {
144 out := new(SockclntDeleteReply)
145 err := c.conn.Invoke(ctx, in, out)
152 func (c *serviceClient) TracePluginMsgIds(ctx context.Context, in *TracePluginMsgIds) error {
153 stream, err := c.conn.NewStream(ctx)
157 err = stream.SendMsg(in)