1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
8 api "git.fd.io/govpp.git/api"
11 // RPCService defines RPC service memclnt.
12 type RPCService interface {
13 APIVersions(ctx context.Context, in *APIVersions) (*APIVersionsReply, error)
14 GetFirstMsgID(ctx context.Context, in *GetFirstMsgID) (*GetFirstMsgIDReply, error)
15 MemclntCreate(ctx context.Context, in *MemclntCreate) (*MemclntCreateReply, error)
16 MemclntDelete(ctx context.Context, in *MemclntDelete) (*MemclntDeleteReply, error)
17 MemclntKeepalive(ctx context.Context, in *MemclntKeepalive) (*MemclntKeepaliveReply, error)
18 MemclntReadTimeout(ctx context.Context, in *MemclntReadTimeout) error
19 MemclntRxThreadSuspend(ctx context.Context, in *MemclntRxThreadSuspend) error
20 RPCCall(ctx context.Context, in *RPCCall) (*RPCCallReply, error)
21 RxThreadExit(ctx context.Context, in *RxThreadExit) error
22 SockInitShm(ctx context.Context, in *SockInitShm) (*SockInitShmReply, error)
23 SockclntCreate(ctx context.Context, in *SockclntCreate) (*SockclntCreateReply, error)
24 SockclntDelete(ctx context.Context, in *SockclntDelete) (*SockclntDeleteReply, error)
25 TracePluginMsgIds(ctx context.Context, in *TracePluginMsgIds) error
28 type serviceClient struct {
32 func NewServiceClient(conn api.Connection) RPCService {
33 return &serviceClient{conn}
36 func (c *serviceClient) APIVersions(ctx context.Context, in *APIVersions) (*APIVersionsReply, error) {
37 out := new(APIVersionsReply)
38 err := c.conn.Invoke(ctx, in, out)
45 func (c *serviceClient) GetFirstMsgID(ctx context.Context, in *GetFirstMsgID) (*GetFirstMsgIDReply, error) {
46 out := new(GetFirstMsgIDReply)
47 err := c.conn.Invoke(ctx, in, out)
54 func (c *serviceClient) MemclntCreate(ctx context.Context, in *MemclntCreate) (*MemclntCreateReply, error) {
55 out := new(MemclntCreateReply)
56 err := c.conn.Invoke(ctx, in, out)
63 func (c *serviceClient) MemclntDelete(ctx context.Context, in *MemclntDelete) (*MemclntDeleteReply, error) {
64 out := new(MemclntDeleteReply)
65 err := c.conn.Invoke(ctx, in, out)
72 func (c *serviceClient) MemclntKeepalive(ctx context.Context, in *MemclntKeepalive) (*MemclntKeepaliveReply, error) {
73 out := new(MemclntKeepaliveReply)
74 err := c.conn.Invoke(ctx, in, out)
81 func (c *serviceClient) MemclntReadTimeout(ctx context.Context, in *MemclntReadTimeout) error {
82 stream, err := c.conn.NewStream(ctx)
86 err = stream.SendMsg(in)
93 func (c *serviceClient) MemclntRxThreadSuspend(ctx context.Context, in *MemclntRxThreadSuspend) error {
94 stream, err := c.conn.NewStream(ctx)
98 err = stream.SendMsg(in)
105 func (c *serviceClient) RPCCall(ctx context.Context, in *RPCCall) (*RPCCallReply, error) {
106 out := new(RPCCallReply)
107 err := c.conn.Invoke(ctx, in, out)
114 func (c *serviceClient) RxThreadExit(ctx context.Context, in *RxThreadExit) error {
115 stream, err := c.conn.NewStream(ctx)
119 err = stream.SendMsg(in)
126 func (c *serviceClient) SockInitShm(ctx context.Context, in *SockInitShm) (*SockInitShmReply, error) {
127 out := new(SockInitShmReply)
128 err := c.conn.Invoke(ctx, in, out)
135 func (c *serviceClient) SockclntCreate(ctx context.Context, in *SockclntCreate) (*SockclntCreateReply, error) {
136 out := new(SockclntCreateReply)
137 err := c.conn.Invoke(ctx, in, out)
144 func (c *serviceClient) SockclntDelete(ctx context.Context, in *SockclntDelete) (*SockclntDeleteReply, error) {
145 out := new(SockclntDeleteReply)
146 err := c.conn.Invoke(ctx, in, out)
153 func (c *serviceClient) TracePluginMsgIds(ctx context.Context, in *TracePluginMsgIds) error {
154 stream, err := c.conn.NewStream(ctx)
158 err = stream.SendMsg(in)