Documentation ¶
Overview ¶
Package memif contains generated bindings for API file memif.api.
Contents: - 2 enums - 14 messages
Index ¶
- Constants
- Variables
- func AllMessages() []api.Message
- type MemifCreate
- func (*MemifCreate) GetCrcString() string
- func (*MemifCreate) GetMessageName() string
- func (*MemifCreate) GetMessageType() api.MessageType
- func (m *MemifCreate) Marshal(b []byte) ([]byte, error)
- func (m *MemifCreate) Reset()
- func (m *MemifCreate) Size() (size int)
- func (m *MemifCreate) Unmarshal(b []byte) error
- type MemifCreateReply
- func (*MemifCreateReply) GetCrcString() string
- func (*MemifCreateReply) GetMessageName() string
- func (*MemifCreateReply) GetMessageType() api.MessageType
- func (m *MemifCreateReply) Marshal(b []byte) ([]byte, error)
- func (m *MemifCreateReply) Reset()
- func (m *MemifCreateReply) Size() (size int)
- func (m *MemifCreateReply) Unmarshal(b []byte) error
- type MemifCreateV2
- func (*MemifCreateV2) GetCrcString() string
- func (*MemifCreateV2) GetMessageName() string
- func (*MemifCreateV2) GetMessageType() api.MessageType
- func (m *MemifCreateV2) Marshal(b []byte) ([]byte, error)
- func (m *MemifCreateV2) Reset()
- func (m *MemifCreateV2) Size() (size int)
- func (m *MemifCreateV2) Unmarshal(b []byte) error
- type MemifCreateV2Reply
- func (*MemifCreateV2Reply) GetCrcString() string
- func (*MemifCreateV2Reply) GetMessageName() string
- func (*MemifCreateV2Reply) GetMessageType() api.MessageType
- func (m *MemifCreateV2Reply) Marshal(b []byte) ([]byte, error)
- func (m *MemifCreateV2Reply) Reset()
- func (m *MemifCreateV2Reply) Size() (size int)
- func (m *MemifCreateV2Reply) Unmarshal(b []byte) error
- type MemifDelete
- func (*MemifDelete) GetCrcString() string
- func (*MemifDelete) GetMessageName() string
- func (*MemifDelete) GetMessageType() api.MessageType
- func (m *MemifDelete) Marshal(b []byte) ([]byte, error)
- func (m *MemifDelete) Reset()
- func (m *MemifDelete) Size() (size int)
- func (m *MemifDelete) Unmarshal(b []byte) error
- type MemifDeleteReply
- func (*MemifDeleteReply) GetCrcString() string
- func (*MemifDeleteReply) GetMessageName() string
- func (*MemifDeleteReply) GetMessageType() api.MessageType
- func (m *MemifDeleteReply) Marshal(b []byte) ([]byte, error)
- func (m *MemifDeleteReply) Reset()
- func (m *MemifDeleteReply) Size() (size int)
- func (m *MemifDeleteReply) Unmarshal(b []byte) error
- type MemifDetails
- func (*MemifDetails) GetCrcString() string
- func (*MemifDetails) GetMessageName() string
- func (*MemifDetails) GetMessageType() api.MessageType
- func (m *MemifDetails) Marshal(b []byte) ([]byte, error)
- func (m *MemifDetails) Reset()
- func (m *MemifDetails) Size() (size int)
- func (m *MemifDetails) Unmarshal(b []byte) error
- type MemifDump
- type MemifMode
- type MemifRole
- type MemifSocketFilenameAddDel
- func (*MemifSocketFilenameAddDel) GetCrcString() string
- func (*MemifSocketFilenameAddDel) GetMessageName() string
- func (*MemifSocketFilenameAddDel) GetMessageType() api.MessageType
- func (m *MemifSocketFilenameAddDel) Marshal(b []byte) ([]byte, error)
- func (m *MemifSocketFilenameAddDel) Reset()
- func (m *MemifSocketFilenameAddDel) Size() (size int)
- func (m *MemifSocketFilenameAddDel) Unmarshal(b []byte) error
- type MemifSocketFilenameAddDelReply
- func (*MemifSocketFilenameAddDelReply) GetCrcString() string
- func (*MemifSocketFilenameAddDelReply) GetMessageName() string
- func (*MemifSocketFilenameAddDelReply) GetMessageType() api.MessageType
- func (m *MemifSocketFilenameAddDelReply) Marshal(b []byte) ([]byte, error)
- func (m *MemifSocketFilenameAddDelReply) Reset()
- func (m *MemifSocketFilenameAddDelReply) Size() (size int)
- func (m *MemifSocketFilenameAddDelReply) Unmarshal(b []byte) error
- type MemifSocketFilenameAddDelV2
- func (*MemifSocketFilenameAddDelV2) GetCrcString() string
- func (*MemifSocketFilenameAddDelV2) GetMessageName() string
- func (*MemifSocketFilenameAddDelV2) GetMessageType() api.MessageType
- func (m *MemifSocketFilenameAddDelV2) Marshal(b []byte) ([]byte, error)
- func (m *MemifSocketFilenameAddDelV2) Reset()
- func (m *MemifSocketFilenameAddDelV2) Size() (size int)
- func (m *MemifSocketFilenameAddDelV2) Unmarshal(b []byte) error
- type MemifSocketFilenameAddDelV2Reply
- func (*MemifSocketFilenameAddDelV2Reply) GetCrcString() string
- func (*MemifSocketFilenameAddDelV2Reply) GetMessageName() string
- func (*MemifSocketFilenameAddDelV2Reply) GetMessageType() api.MessageType
- func (m *MemifSocketFilenameAddDelV2Reply) Marshal(b []byte) ([]byte, error)
- func (m *MemifSocketFilenameAddDelV2Reply) Reset()
- func (m *MemifSocketFilenameAddDelV2Reply) Size() (size int)
- func (m *MemifSocketFilenameAddDelV2Reply) Unmarshal(b []byte) error
- type MemifSocketFilenameDetails
- func (*MemifSocketFilenameDetails) GetCrcString() string
- func (*MemifSocketFilenameDetails) GetMessageName() string
- func (*MemifSocketFilenameDetails) GetMessageType() api.MessageType
- func (m *MemifSocketFilenameDetails) Marshal(b []byte) ([]byte, error)
- func (m *MemifSocketFilenameDetails) Reset()
- func (m *MemifSocketFilenameDetails) Size() (size int)
- func (m *MemifSocketFilenameDetails) Unmarshal(b []byte) error
- type MemifSocketFilenameDump
- func (*MemifSocketFilenameDump) GetCrcString() string
- func (*MemifSocketFilenameDump) GetMessageName() string
- func (*MemifSocketFilenameDump) GetMessageType() api.MessageType
- func (m *MemifSocketFilenameDump) Marshal(b []byte) ([]byte, error)
- func (m *MemifSocketFilenameDump) Reset()
- func (m *MemifSocketFilenameDump) Size() (size int)
- func (m *MemifSocketFilenameDump) Unmarshal(b []byte) error
- type RPCService
- type RPCService_MemifDumpClient
- type RPCService_MemifSocketFilenameDumpClient
Constants ¶
const ( APIFile = "memif" APIVersion = "3.1.0" VersionCrc = 0xd48ac702 )
Variables ¶
var ( MemifMode_name = map[uint32]string{ 0: "MEMIF_MODE_API_ETHERNET", 1: "MEMIF_MODE_API_IP", 2: "MEMIF_MODE_API_PUNT_INJECT", } MemifMode_value = map[string]uint32{ "MEMIF_MODE_API_ETHERNET": 0, "MEMIF_MODE_API_IP": 1, "MEMIF_MODE_API_PUNT_INJECT": 2, } )
var ( MemifRole_name = map[uint32]string{ 0: "MEMIF_ROLE_API_MASTER", 1: "MEMIF_ROLE_API_SLAVE", } MemifRole_value = map[string]uint32{ "MEMIF_ROLE_API_MASTER": 0, "MEMIF_ROLE_API_SLAVE": 1, } )
Functions ¶
func AllMessages ¶
Messages returns list of all messages in this module.
Types ¶
type MemifCreate ¶
type MemifCreate struct { Role MemifRole `binapi:"memif_role,name=role" json:"role,omitempty"` Mode MemifMode `binapi:"memif_mode,name=mode" json:"mode,omitempty"` RxQueues uint8 `binapi:"u8,name=rx_queues" json:"rx_queues,omitempty"` TxQueues uint8 `binapi:"u8,name=tx_queues" json:"tx_queues,omitempty"` ID uint32 `binapi:"u32,name=id" json:"id,omitempty"` SocketID uint32 `binapi:"u32,name=socket_id" json:"socket_id,omitempty"` RingSize uint32 `binapi:"u32,name=ring_size" json:"ring_size,omitempty"` BufferSize uint16 `binapi:"u16,name=buffer_size" json:"buffer_size,omitempty"` NoZeroCopy bool `binapi:"bool,name=no_zero_copy" json:"no_zero_copy,omitempty"` HwAddr ethernet_types.MacAddress `binapi:"mac_address,name=hw_addr" json:"hw_addr,omitempty"` Secret string `binapi:"string[24],name=secret" json:"secret,omitempty"` }
Create memory interface
- role - role of the interface in the connection (master/slave)
- mode - interface mode
- rx_queues - number of rx queues (only valid for slave)
- tx_queues - number of tx queues (only valid for slave)
- id - 32bit integer used to authenticate and match opposite sides of the connection
- socket_id - socket filename id to be used for connection establishment
- ring_size - the number of entries of RX/TX rings
- buffer_size - size of the buffer allocated for each ring entry
- no_zero_copy - if true, disable zero copy
- hw_addr - interface MAC address
- secret - optional, default is "", max length 24
MemifCreate defines message 'memif_create'. Deprecated: the message will be removed in the future versions
func (*MemifCreate) GetCrcString ¶
func (*MemifCreate) GetCrcString() string
func (*MemifCreate) GetMessageName ¶
func (*MemifCreate) GetMessageName() string
func (*MemifCreate) GetMessageType ¶
func (*MemifCreate) GetMessageType() api.MessageType
func (*MemifCreate) Reset ¶
func (m *MemifCreate) Reset()
func (*MemifCreate) Size ¶
func (m *MemifCreate) Size() (size int)
func (*MemifCreate) Unmarshal ¶
func (m *MemifCreate) Unmarshal(b []byte) error
type MemifCreateReply ¶
type MemifCreateReply struct { Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` }
Create memory interface response
- retval - return value for request
- sw_if_index - software index of the newly created interface
MemifCreateReply defines message 'memif_create_reply'. Deprecated: the message will be removed in the future versions
func (*MemifCreateReply) GetCrcString ¶
func (*MemifCreateReply) GetCrcString() string
func (*MemifCreateReply) GetMessageName ¶
func (*MemifCreateReply) GetMessageName() string
func (*MemifCreateReply) GetMessageType ¶
func (*MemifCreateReply) GetMessageType() api.MessageType
func (*MemifCreateReply) Reset ¶
func (m *MemifCreateReply) Reset()
func (*MemifCreateReply) Size ¶
func (m *MemifCreateReply) Size() (size int)
func (*MemifCreateReply) Unmarshal ¶
func (m *MemifCreateReply) Unmarshal(b []byte) error
type MemifCreateV2 ¶
type MemifCreateV2 struct { Role MemifRole `binapi:"memif_role,name=role" json:"role,omitempty"` Mode MemifMode `binapi:"memif_mode,name=mode" json:"mode,omitempty"` RxQueues uint8 `binapi:"u8,name=rx_queues" json:"rx_queues,omitempty"` TxQueues uint8 `binapi:"u8,name=tx_queues" json:"tx_queues,omitempty"` ID uint32 `binapi:"u32,name=id" json:"id,omitempty"` SocketID uint32 `binapi:"u32,name=socket_id" json:"socket_id,omitempty"` RingSize uint32 `binapi:"u32,name=ring_size" json:"ring_size,omitempty"` BufferSize uint16 `binapi:"u16,name=buffer_size" json:"buffer_size,omitempty"` NoZeroCopy bool `binapi:"bool,name=no_zero_copy" json:"no_zero_copy,omitempty"` UseDma bool `binapi:"bool,name=use_dma" json:"use_dma,omitempty"` HwAddr ethernet_types.MacAddress `binapi:"mac_address,name=hw_addr" json:"hw_addr,omitempty"` Secret string `binapi:"string[24],name=secret" json:"secret,omitempty"` }
Create memory interface
- role - role of the interface in the connection (master/slave)
- mode - interface mode
- rx_queues - number of rx queues (only valid for slave)
- tx_queues - number of tx queues (only valid for slave)
- id - 32bit integer used to authenticate and match opposite sides of the connection
- socket_id - socket filename id to be used for connection establishment
- ring_size - the number of entries of RX/TX rings
- buffer_size - size of the buffer allocated for each ring entry
- no_zero_copy - if true, disable zero copy
- use_dma - if true, use dma accelerate memory copy
- hw_addr - interface MAC address
- secret - optional, default is "", max length 24
MemifCreateV2 defines message 'memif_create_v2'.
func (*MemifCreateV2) GetCrcString ¶
func (*MemifCreateV2) GetCrcString() string
func (*MemifCreateV2) GetMessageName ¶
func (*MemifCreateV2) GetMessageName() string
func (*MemifCreateV2) GetMessageType ¶
func (*MemifCreateV2) GetMessageType() api.MessageType
func (*MemifCreateV2) Reset ¶
func (m *MemifCreateV2) Reset()
func (*MemifCreateV2) Size ¶
func (m *MemifCreateV2) Size() (size int)
func (*MemifCreateV2) Unmarshal ¶
func (m *MemifCreateV2) Unmarshal(b []byte) error
type MemifCreateV2Reply ¶
type MemifCreateV2Reply struct { Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` }
Create memory interface response
- retval - return value for request
- sw_if_index - software index of the newly created interface
MemifCreateV2Reply defines message 'memif_create_v2_reply'.
func (*MemifCreateV2Reply) GetCrcString ¶
func (*MemifCreateV2Reply) GetCrcString() string
func (*MemifCreateV2Reply) GetMessageName ¶
func (*MemifCreateV2Reply) GetMessageName() string
func (*MemifCreateV2Reply) GetMessageType ¶
func (*MemifCreateV2Reply) GetMessageType() api.MessageType
func (*MemifCreateV2Reply) Reset ¶
func (m *MemifCreateV2Reply) Reset()
func (*MemifCreateV2Reply) Size ¶
func (m *MemifCreateV2Reply) Size() (size int)
func (*MemifCreateV2Reply) Unmarshal ¶
func (m *MemifCreateV2Reply) Unmarshal(b []byte) error
type MemifDelete ¶
type MemifDelete struct {
SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
}
Delete memory interface
- sw_if_index - software index of the interface to delete
MemifDelete defines message 'memif_delete'.
func (*MemifDelete) GetCrcString ¶
func (*MemifDelete) GetCrcString() string
func (*MemifDelete) GetMessageName ¶
func (*MemifDelete) GetMessageName() string
func (*MemifDelete) GetMessageType ¶
func (*MemifDelete) GetMessageType() api.MessageType
func (*MemifDelete) Reset ¶
func (m *MemifDelete) Reset()
func (*MemifDelete) Size ¶
func (m *MemifDelete) Size() (size int)
func (*MemifDelete) Unmarshal ¶
func (m *MemifDelete) Unmarshal(b []byte) error
type MemifDeleteReply ¶
type MemifDeleteReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
MemifDeleteReply defines message 'memif_delete_reply'.
func (*MemifDeleteReply) GetCrcString ¶
func (*MemifDeleteReply) GetCrcString() string
func (*MemifDeleteReply) GetMessageName ¶
func (*MemifDeleteReply) GetMessageName() string
func (*MemifDeleteReply) GetMessageType ¶
func (*MemifDeleteReply) GetMessageType() api.MessageType
func (*MemifDeleteReply) Reset ¶
func (m *MemifDeleteReply) Reset()
func (*MemifDeleteReply) Size ¶
func (m *MemifDeleteReply) Size() (size int)
func (*MemifDeleteReply) Unmarshal ¶
func (m *MemifDeleteReply) Unmarshal(b []byte) error
type MemifDetails ¶
type MemifDetails struct { SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` HwAddr ethernet_types.MacAddress `binapi:"mac_address,name=hw_addr" json:"hw_addr,omitempty"` ID uint32 `binapi:"u32,name=id" json:"id,omitempty"` Role MemifRole `binapi:"memif_role,name=role" json:"role,omitempty"` Mode MemifMode `binapi:"memif_mode,name=mode" json:"mode,omitempty"` ZeroCopy bool `binapi:"bool,name=zero_copy" json:"zero_copy,omitempty"` SocketID uint32 `binapi:"u32,name=socket_id" json:"socket_id,omitempty"` RingSize uint32 `binapi:"u32,name=ring_size" json:"ring_size,omitempty"` BufferSize uint16 `binapi:"u16,name=buffer_size" json:"buffer_size,omitempty"` Flags interface_types.IfStatusFlags `binapi:"if_status_flags,name=flags" json:"flags,omitempty"` IfName string `binapi:"string[64],name=if_name" json:"if_name,omitempty"` }
Memory interface details structure
- sw_if_index - index of the interface
- hw_addr - interface MAC address
- id - id associated with the interface
- role - role of the interface in the connection (master/slave)
- mode - interface mode
- zero_copy - zero copy flag present
- socket_id - id of the socket filename used by this interface to establish new connections
- ring_size - the number of entries of RX/TX rings
- buffer_size - size of the buffer allocated for each ring entry
- flags - interface_status flags
- if_name - name of the interface
MemifDetails defines message 'memif_details'.
func (*MemifDetails) GetCrcString ¶
func (*MemifDetails) GetCrcString() string
func (*MemifDetails) GetMessageName ¶
func (*MemifDetails) GetMessageName() string
func (*MemifDetails) GetMessageType ¶
func (*MemifDetails) GetMessageType() api.MessageType
func (*MemifDetails) Reset ¶
func (m *MemifDetails) Reset()
func (*MemifDetails) Size ¶
func (m *MemifDetails) Size() (size int)
func (*MemifDetails) Unmarshal ¶
func (m *MemifDetails) Unmarshal(b []byte) error
type MemifDump ¶
type MemifDump struct{}
Dump all memory interfaces MemifDump defines message 'memif_dump'.
func (*MemifDump) GetCrcString ¶
func (*MemifDump) GetMessageName ¶
func (*MemifDump) GetMessageType ¶
func (*MemifDump) GetMessageType() api.MessageType
type MemifSocketFilenameAddDel ¶
type MemifSocketFilenameAddDel struct { IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"` SocketID uint32 `binapi:"u32,name=socket_id" json:"socket_id,omitempty"` SocketFilename string `binapi:"string[108],name=socket_filename" json:"socket_filename,omitempty"` }
Create or remove named socket file for memif interfaces
- is_add - 0 = remove, 1 = add association
- socket_id - non-0 32-bit integer used to identify a socket file
- socket_filename - filename of the socket to be used for connection establishment; id 0 always maps to default "/var/vpp/memif.sock"; no socket filename needed when is_add == 0.
MemifSocketFilenameAddDel defines message 'memif_socket_filename_add_del'. Deprecated: the message will be removed in the future versions
func (*MemifSocketFilenameAddDel) GetCrcString ¶
func (*MemifSocketFilenameAddDel) GetCrcString() string
func (*MemifSocketFilenameAddDel) GetMessageName ¶
func (*MemifSocketFilenameAddDel) GetMessageName() string
func (*MemifSocketFilenameAddDel) GetMessageType ¶
func (*MemifSocketFilenameAddDel) GetMessageType() api.MessageType
func (*MemifSocketFilenameAddDel) Marshal ¶
func (m *MemifSocketFilenameAddDel) Marshal(b []byte) ([]byte, error)
func (*MemifSocketFilenameAddDel) Reset ¶
func (m *MemifSocketFilenameAddDel) Reset()
func (*MemifSocketFilenameAddDel) Size ¶
func (m *MemifSocketFilenameAddDel) Size() (size int)
func (*MemifSocketFilenameAddDel) Unmarshal ¶
func (m *MemifSocketFilenameAddDel) Unmarshal(b []byte) error
type MemifSocketFilenameAddDelReply ¶
type MemifSocketFilenameAddDelReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
MemifSocketFilenameAddDelReply defines message 'memif_socket_filename_add_del_reply'. Deprecated: the message will be removed in the future versions
func (*MemifSocketFilenameAddDelReply) GetCrcString ¶
func (*MemifSocketFilenameAddDelReply) GetCrcString() string
func (*MemifSocketFilenameAddDelReply) GetMessageName ¶
func (*MemifSocketFilenameAddDelReply) GetMessageName() string
func (*MemifSocketFilenameAddDelReply) GetMessageType ¶
func (*MemifSocketFilenameAddDelReply) GetMessageType() api.MessageType
func (*MemifSocketFilenameAddDelReply) Marshal ¶
func (m *MemifSocketFilenameAddDelReply) Marshal(b []byte) ([]byte, error)
func (*MemifSocketFilenameAddDelReply) Reset ¶
func (m *MemifSocketFilenameAddDelReply) Reset()
func (*MemifSocketFilenameAddDelReply) Size ¶
func (m *MemifSocketFilenameAddDelReply) Size() (size int)
func (*MemifSocketFilenameAddDelReply) Unmarshal ¶
func (m *MemifSocketFilenameAddDelReply) Unmarshal(b []byte) error
type MemifSocketFilenameAddDelV2 ¶
type MemifSocketFilenameAddDelV2 struct { IsAdd bool `binapi:"bool,name=is_add" json:"is_add,omitempty"` SocketID uint32 `binapi:"u32,name=socket_id,default=4294967295" json:"socket_id,omitempty"` SocketFilename string `binapi:"string[],name=socket_filename" json:"socket_filename,omitempty"` }
Create or remove named socket file for memif interfaces
- is_add - 0 = remove, 1 = add association
- socket_id - non-0 32-bit integer used to identify a socket file ~0 means autogenerate
- socket_filename - filename of the socket to be used for connection establishment; id 0 always maps to default "/var/vpp/memif.sock"; no socket filename needed when is_add == 0. socket_filename starting with '@' will create an abstract socket in the given namespace
MemifSocketFilenameAddDelV2 defines message 'memif_socket_filename_add_del_v2'.
func (*MemifSocketFilenameAddDelV2) GetCrcString ¶
func (*MemifSocketFilenameAddDelV2) GetCrcString() string
func (*MemifSocketFilenameAddDelV2) GetMessageName ¶
func (*MemifSocketFilenameAddDelV2) GetMessageName() string
func (*MemifSocketFilenameAddDelV2) GetMessageType ¶
func (*MemifSocketFilenameAddDelV2) GetMessageType() api.MessageType
func (*MemifSocketFilenameAddDelV2) Marshal ¶
func (m *MemifSocketFilenameAddDelV2) Marshal(b []byte) ([]byte, error)
func (*MemifSocketFilenameAddDelV2) Reset ¶
func (m *MemifSocketFilenameAddDelV2) Reset()
func (*MemifSocketFilenameAddDelV2) Size ¶
func (m *MemifSocketFilenameAddDelV2) Size() (size int)
func (*MemifSocketFilenameAddDelV2) Unmarshal ¶
func (m *MemifSocketFilenameAddDelV2) Unmarshal(b []byte) error
type MemifSocketFilenameAddDelV2Reply ¶
type MemifSocketFilenameAddDelV2Reply struct { Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` SocketID uint32 `binapi:"u32,name=socket_id" json:"socket_id,omitempty"` }
Create memory interface socket file response
- retval - return value for request
- socket_id - non-0 32-bit integer used to identify a socket file
MemifSocketFilenameAddDelV2Reply defines message 'memif_socket_filename_add_del_v2_reply'.
func (*MemifSocketFilenameAddDelV2Reply) GetCrcString ¶
func (*MemifSocketFilenameAddDelV2Reply) GetCrcString() string
func (*MemifSocketFilenameAddDelV2Reply) GetMessageName ¶
func (*MemifSocketFilenameAddDelV2Reply) GetMessageName() string
func (*MemifSocketFilenameAddDelV2Reply) GetMessageType ¶
func (*MemifSocketFilenameAddDelV2Reply) GetMessageType() api.MessageType
func (*MemifSocketFilenameAddDelV2Reply) Marshal ¶
func (m *MemifSocketFilenameAddDelV2Reply) Marshal(b []byte) ([]byte, error)
func (*MemifSocketFilenameAddDelV2Reply) Reset ¶
func (m *MemifSocketFilenameAddDelV2Reply) Reset()
func (*MemifSocketFilenameAddDelV2Reply) Size ¶
func (m *MemifSocketFilenameAddDelV2Reply) Size() (size int)
func (*MemifSocketFilenameAddDelV2Reply) Unmarshal ¶
func (m *MemifSocketFilenameAddDelV2Reply) Unmarshal(b []byte) error
type MemifSocketFilenameDetails ¶
type MemifSocketFilenameDetails struct { SocketID uint32 `binapi:"u32,name=socket_id" json:"socket_id,omitempty"` SocketFilename string `binapi:"string[108],name=socket_filename" json:"socket_filename,omitempty"` }
Memory interface details structure
- socket_id - u32 used to identify the given socket filename
- socket_filename - corresponding NUL terminated socket filename
MemifSocketFilenameDetails defines message 'memif_socket_filename_details'.
func (*MemifSocketFilenameDetails) GetCrcString ¶
func (*MemifSocketFilenameDetails) GetCrcString() string
func (*MemifSocketFilenameDetails) GetMessageName ¶
func (*MemifSocketFilenameDetails) GetMessageName() string
func (*MemifSocketFilenameDetails) GetMessageType ¶
func (*MemifSocketFilenameDetails) GetMessageType() api.MessageType
func (*MemifSocketFilenameDetails) Marshal ¶
func (m *MemifSocketFilenameDetails) Marshal(b []byte) ([]byte, error)
func (*MemifSocketFilenameDetails) Reset ¶
func (m *MemifSocketFilenameDetails) Reset()
func (*MemifSocketFilenameDetails) Size ¶
func (m *MemifSocketFilenameDetails) Size() (size int)
func (*MemifSocketFilenameDetails) Unmarshal ¶
func (m *MemifSocketFilenameDetails) Unmarshal(b []byte) error
type MemifSocketFilenameDump ¶
type MemifSocketFilenameDump struct{}
Dump the table of socket ids and corresponding filenames MemifSocketFilenameDump defines message 'memif_socket_filename_dump'.
func (*MemifSocketFilenameDump) GetCrcString ¶
func (*MemifSocketFilenameDump) GetCrcString() string
func (*MemifSocketFilenameDump) GetMessageName ¶
func (*MemifSocketFilenameDump) GetMessageName() string
func (*MemifSocketFilenameDump) GetMessageType ¶
func (*MemifSocketFilenameDump) GetMessageType() api.MessageType
func (*MemifSocketFilenameDump) Marshal ¶
func (m *MemifSocketFilenameDump) Marshal(b []byte) ([]byte, error)
func (*MemifSocketFilenameDump) Reset ¶
func (m *MemifSocketFilenameDump) Reset()
func (*MemifSocketFilenameDump) Size ¶
func (m *MemifSocketFilenameDump) Size() (size int)
func (*MemifSocketFilenameDump) Unmarshal ¶
func (m *MemifSocketFilenameDump) Unmarshal(b []byte) error
type RPCService ¶
type RPCService interface { MemifCreate(ctx context.Context, in *MemifCreate) (*MemifCreateReply, error) MemifCreateV2(ctx context.Context, in *MemifCreateV2) (*MemifCreateV2Reply, error) MemifDelete(ctx context.Context, in *MemifDelete) (*MemifDeleteReply, error) MemifDump(ctx context.Context, in *MemifDump) (RPCService_MemifDumpClient, error) MemifSocketFilenameAddDel(ctx context.Context, in *MemifSocketFilenameAddDel) (*MemifSocketFilenameAddDelReply, error) MemifSocketFilenameAddDelV2(ctx context.Context, in *MemifSocketFilenameAddDelV2) (*MemifSocketFilenameAddDelV2Reply, error) MemifSocketFilenameDump(ctx context.Context, in *MemifSocketFilenameDump) (RPCService_MemifSocketFilenameDumpClient, error) }
RPCService defines RPC service memif.
func NewServiceClient ¶
func NewServiceClient(conn api.Connection) RPCService
type RPCService_MemifDumpClient ¶
type RPCService_MemifDumpClient interface { Recv() (*MemifDetails, error) api.Stream }
type RPCService_MemifSocketFilenameDumpClient ¶
type RPCService_MemifSocketFilenameDumpClient interface { Recv() (*MemifSocketFilenameDetails, error) api.Stream }