// Code generated by GoVPP binapi-generator. DO NOT EDIT.
-// source: memclnt.api.json
+// source: /usr/share/vpp/api/core/memclnt.api.json
/*
- Package memclnt is a generated from VPP binary API module 'memclnt'.
+Package memclnt is a generated from VPP binary API module 'memclnt'.
- It contains following objects:
- 13 services
+ The memclnt module consists of:
2 types
22 messages
+ 13 services
*/
package memclnt
import api "git.fd.io/govpp.git/api"
-import struc "github.com/lunixbochs/struc"
import bytes "bytes"
+import context "context"
+import strconv "strconv"
+import struc "github.com/lunixbochs/struc"
// Reference imports to suppress errors if they are not otherwise used.
var _ = api.RegisterMessage
-var _ = struc.Pack
var _ = bytes.NewBuffer
+var _ = context.Background
+var _ = strconv.Itoa
+var _ = struc.Pack
-// Services represents VPP binary API services:
-type Services interface {
- APIVersions(*APIVersions) (*APIVersionsReply, error)
- GetFirstMsgID(*GetFirstMsgID) (*GetFirstMsgIDReply, error)
- MemclntCreate(*MemclntCreate) (*MemclntCreateReply, error)
- MemclntDelete(*MemclntDelete) (*MemclntDeleteReply, error)
- MemclntKeepalive(*MemclntKeepalive) (*MemclntKeepaliveReply, error)
- MemclntReadTimeout(*MemclntReadTimeout) error
- MemclntRxThreadSuspend(*MemclntRxThreadSuspend) error
- RPCCall(*RPCCall) (*RPCCallReply, error)
- RxThreadExit(*RxThreadExit) error
- SockInitShm(*SockInitShm) (*SockInitShmReply, error)
- SockclntCreate(*SockclntCreate) (*SockclntCreateReply, error)
- SockclntDelete(*SockclntDelete) (*SockclntDeleteReply, error)
- TracePluginMsgIds(*TracePluginMsgIds) error
-}
+// This is a compile-time assertion to ensure that this generated file
+// is compatible with the GoVPP api package it is being compiled against.
+// A compilation error at this line likely means your copy of the
+// GoVPP api package needs to be updated.
+const _ = api.GoVppAPIPackageIsVersion1 // please upgrade the GoVPP api package
+
+const (
+ // ModuleName is the name of this module.
+ ModuleName = "memclnt"
+ // APIVersion is the API version of this module.
+ APIVersion = "2.1.0"
+ // VersionCrc is the CRC of this module.
+ VersionCrc = 0xb619530
+)
/* Types */
api.RegisterMessage((*TracePluginMsgIds)(nil), "memclnt.TracePluginMsgIds")
}
-var Messages = []api.Message{
- (*APIVersions)(nil),
- (*APIVersionsReply)(nil),
- (*GetFirstMsgID)(nil),
- (*GetFirstMsgIDReply)(nil),
- (*MemclntCreate)(nil),
- (*MemclntCreateReply)(nil),
- (*MemclntDelete)(nil),
- (*MemclntDeleteReply)(nil),
- (*MemclntKeepalive)(nil),
- (*MemclntKeepaliveReply)(nil),
- (*MemclntReadTimeout)(nil),
- (*MemclntRxThreadSuspend)(nil),
- (*RPCCall)(nil),
- (*RPCCallReply)(nil),
- (*RxThreadExit)(nil),
- (*SockInitShm)(nil),
- (*SockInitShmReply)(nil),
- (*SockclntCreate)(nil),
- (*SockclntCreateReply)(nil),
- (*SockclntDelete)(nil),
- (*SockclntDeleteReply)(nil),
- (*TracePluginMsgIds)(nil),
+// Messages returns list of all messages in this module.
+func AllMessages() []api.Message {
+ return []api.Message{
+ (*APIVersions)(nil),
+ (*APIVersionsReply)(nil),
+ (*GetFirstMsgID)(nil),
+ (*GetFirstMsgIDReply)(nil),
+ (*MemclntCreate)(nil),
+ (*MemclntCreateReply)(nil),
+ (*MemclntDelete)(nil),
+ (*MemclntDeleteReply)(nil),
+ (*MemclntKeepalive)(nil),
+ (*MemclntKeepaliveReply)(nil),
+ (*MemclntReadTimeout)(nil),
+ (*MemclntRxThreadSuspend)(nil),
+ (*RPCCall)(nil),
+ (*RPCCallReply)(nil),
+ (*RxThreadExit)(nil),
+ (*SockInitShm)(nil),
+ (*SockInitShmReply)(nil),
+ (*SockclntCreate)(nil),
+ (*SockclntCreateReply)(nil),
+ (*SockclntDelete)(nil),
+ (*SockclntDeleteReply)(nil),
+ (*TracePluginMsgIds)(nil),
+ }
+}
+
+// Service represents services in VPP binary API.
+type Service interface {
+ APIVersions(ctx context.Context, in *APIVersions) (*APIVersionsReply, error)
+ GetFirstMsgID(ctx context.Context, in *GetFirstMsgID) (*GetFirstMsgIDReply, error)
+ MemclntCreate(ctx context.Context, in *MemclntCreate) (*MemclntCreateReply, error)
+ MemclntDelete(ctx context.Context, in *MemclntDelete) (*MemclntDeleteReply, error)
+ MemclntKeepalive(ctx context.Context, in *MemclntKeepalive) (*MemclntKeepaliveReply, error)
+ MemclntReadTimeout(ctx context.Context, in *MemclntReadTimeout) error
+ MemclntRxThreadSuspend(ctx context.Context, in *MemclntRxThreadSuspend) error
+ RPCCall(ctx context.Context, in *RPCCall) (*RPCCallReply, error)
+ RxThreadExit(ctx context.Context, in *RxThreadExit) error
+ SockInitShm(ctx context.Context, in *SockInitShm) (*SockInitShmReply, error)
+ SockclntCreate(ctx context.Context, in *SockclntCreate) (*SockclntCreateReply, error)
+ SockclntDelete(ctx context.Context, in *SockclntDelete) (*SockclntDeleteReply, error)
+ TracePluginMsgIds(ctx context.Context, in *TracePluginMsgIds) error
+}
+
+type service struct {
+ ch api.Channel
+}
+
+func NewService(ch api.Channel) Service {
+ return &service{ch}
+}
+
+func (c *service) APIVersions(ctx context.Context, in *APIVersions) (*APIVersionsReply, error) {
+ out := new(APIVersionsReply)
+ err := c.ch.SendRequest(in).ReceiveReply(out)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *service) GetFirstMsgID(ctx context.Context, in *GetFirstMsgID) (*GetFirstMsgIDReply, error) {
+ out := new(GetFirstMsgIDReply)
+ err := c.ch.SendRequest(in).ReceiveReply(out)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *service) MemclntCreate(ctx context.Context, in *MemclntCreate) (*MemclntCreateReply, error) {
+ out := new(MemclntCreateReply)
+ err := c.ch.SendRequest(in).ReceiveReply(out)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *service) MemclntDelete(ctx context.Context, in *MemclntDelete) (*MemclntDeleteReply, error) {
+ out := new(MemclntDeleteReply)
+ err := c.ch.SendRequest(in).ReceiveReply(out)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *service) MemclntKeepalive(ctx context.Context, in *MemclntKeepalive) (*MemclntKeepaliveReply, error) {
+ out := new(MemclntKeepaliveReply)
+ err := c.ch.SendRequest(in).ReceiveReply(out)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *service) MemclntReadTimeout(ctx context.Context, in *MemclntReadTimeout) error {
+ c.ch.SendRequest(in)
+ return nil
+}
+
+func (c *service) MemclntRxThreadSuspend(ctx context.Context, in *MemclntRxThreadSuspend) error {
+ c.ch.SendRequest(in)
+ return nil
+}
+
+func (c *service) RPCCall(ctx context.Context, in *RPCCall) (*RPCCallReply, error) {
+ out := new(RPCCallReply)
+ err := c.ch.SendRequest(in).ReceiveReply(out)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *service) RxThreadExit(ctx context.Context, in *RxThreadExit) error {
+ c.ch.SendRequest(in)
+ return nil
+}
+
+func (c *service) SockInitShm(ctx context.Context, in *SockInitShm) (*SockInitShmReply, error) {
+ out := new(SockInitShmReply)
+ err := c.ch.SendRequest(in).ReceiveReply(out)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *service) SockclntCreate(ctx context.Context, in *SockclntCreate) (*SockclntCreateReply, error) {
+ out := new(SockclntCreateReply)
+ err := c.ch.SendRequest(in).ReceiveReply(out)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *service) SockclntDelete(ctx context.Context, in *SockclntDelete) (*SockclntDeleteReply, error) {
+ out := new(SockclntDeleteReply)
+ err := c.ch.SendRequest(in).ReceiveReply(out)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *service) TracePluginMsgIds(ctx context.Context, in *TracePluginMsgIds) error {
+ c.ch.SendRequest(in)
+ return nil
}