Documentation
¶
Overview ¶
Package netmap contains generated bindings for API file netmap.api.
Contents:
4 messages
Index ¶
- Constants
- func AllMessages() []api.Message
- type NetmapCreate
- func (*NetmapCreate) GetCrcString() string
- func (*NetmapCreate) GetMessageName() string
- func (*NetmapCreate) GetMessageType() api.MessageType
- func (m *NetmapCreate) Marshal(b []byte) ([]byte, error)
- func (m *NetmapCreate) Reset()
- func (m *NetmapCreate) Size() (size int)
- func (m *NetmapCreate) Unmarshal(b []byte) error
- type NetmapCreateReply
- func (*NetmapCreateReply) GetCrcString() string
- func (*NetmapCreateReply) GetMessageName() string
- func (*NetmapCreateReply) GetMessageType() api.MessageType
- func (m *NetmapCreateReply) Marshal(b []byte) ([]byte, error)
- func (m *NetmapCreateReply) Reset()
- func (m *NetmapCreateReply) Size() (size int)
- func (m *NetmapCreateReply) Unmarshal(b []byte) error
- type NetmapDelete
- func (*NetmapDelete) GetCrcString() string
- func (*NetmapDelete) GetMessageName() string
- func (*NetmapDelete) GetMessageType() api.MessageType
- func (m *NetmapDelete) Marshal(b []byte) ([]byte, error)
- func (m *NetmapDelete) Reset()
- func (m *NetmapDelete) Size() (size int)
- func (m *NetmapDelete) Unmarshal(b []byte) error
- type NetmapDeleteReply
- func (*NetmapDeleteReply) GetCrcString() string
- func (*NetmapDeleteReply) GetMessageName() string
- func (*NetmapDeleteReply) GetMessageType() api.MessageType
- func (m *NetmapDeleteReply) Marshal(b []byte) ([]byte, error)
- func (m *NetmapDeleteReply) Reset()
- func (m *NetmapDeleteReply) Size() (size int)
- func (m *NetmapDeleteReply) Unmarshal(b []byte) error
- type RPCService
Constants ¶
View Source
const ( APIFile = "netmap" APIVersion = "1.0.0" VersionCrc = 0x40e7a84f )
Variables ¶
This section is empty.
Functions ¶
func AllMessages ¶
Messages returns list of all messages in this module.
Types ¶
type NetmapCreate ¶
type NetmapCreate struct { NetmapIfName []byte `binapi:"u8[64],name=netmap_if_name" json:"netmap_if_name,omitempty"` HwAddr []byte `binapi:"u8[6],name=hw_addr" json:"hw_addr,omitempty"` UseRandomHwAddr uint8 `binapi:"u8,name=use_random_hw_addr" json:"use_random_hw_addr,omitempty"` IsPipe uint8 `binapi:"u8,name=is_pipe" json:"is_pipe,omitempty"` IsMaster uint8 `binapi:"u8,name=is_master" json:"is_master,omitempty"` }
NetmapCreate defines message 'netmap_create'.
func (*NetmapCreate) GetCrcString ¶
func (*NetmapCreate) GetCrcString() string
func (*NetmapCreate) GetMessageName ¶
func (*NetmapCreate) GetMessageName() string
func (*NetmapCreate) GetMessageType ¶
func (*NetmapCreate) GetMessageType() api.MessageType
func (*NetmapCreate) Reset ¶
func (m *NetmapCreate) Reset()
func (*NetmapCreate) Size ¶
func (m *NetmapCreate) Size() (size int)
func (*NetmapCreate) Unmarshal ¶
func (m *NetmapCreate) Unmarshal(b []byte) error
type NetmapCreateReply ¶
type NetmapCreateReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
NetmapCreateReply defines message 'netmap_create_reply'.
func (*NetmapCreateReply) GetCrcString ¶
func (*NetmapCreateReply) GetCrcString() string
func (*NetmapCreateReply) GetMessageName ¶
func (*NetmapCreateReply) GetMessageName() string
func (*NetmapCreateReply) GetMessageType ¶
func (*NetmapCreateReply) GetMessageType() api.MessageType
func (*NetmapCreateReply) Reset ¶
func (m *NetmapCreateReply) Reset()
func (*NetmapCreateReply) Size ¶
func (m *NetmapCreateReply) Size() (size int)
func (*NetmapCreateReply) Unmarshal ¶
func (m *NetmapCreateReply) Unmarshal(b []byte) error
type NetmapDelete ¶
type NetmapDelete struct {
NetmapIfName []byte `binapi:"u8[64],name=netmap_if_name" json:"netmap_if_name,omitempty"`
}
NetmapDelete defines message 'netmap_delete'.
func (*NetmapDelete) GetCrcString ¶
func (*NetmapDelete) GetCrcString() string
func (*NetmapDelete) GetMessageName ¶
func (*NetmapDelete) GetMessageName() string
func (*NetmapDelete) GetMessageType ¶
func (*NetmapDelete) GetMessageType() api.MessageType
func (*NetmapDelete) Reset ¶
func (m *NetmapDelete) Reset()
func (*NetmapDelete) Size ¶
func (m *NetmapDelete) Size() (size int)
func (*NetmapDelete) Unmarshal ¶
func (m *NetmapDelete) Unmarshal(b []byte) error
type NetmapDeleteReply ¶
type NetmapDeleteReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
NetmapDeleteReply defines message 'netmap_delete_reply'.
func (*NetmapDeleteReply) GetCrcString ¶
func (*NetmapDeleteReply) GetCrcString() string
func (*NetmapDeleteReply) GetMessageName ¶
func (*NetmapDeleteReply) GetMessageName() string
func (*NetmapDeleteReply) GetMessageType ¶
func (*NetmapDeleteReply) GetMessageType() api.MessageType
func (*NetmapDeleteReply) Reset ¶
func (m *NetmapDeleteReply) Reset()
func (*NetmapDeleteReply) Size ¶
func (m *NetmapDeleteReply) Size() (size int)
func (*NetmapDeleteReply) Unmarshal ¶
func (m *NetmapDeleteReply) Unmarshal(b []byte) error
type RPCService ¶
type RPCService interface { NetmapCreate(ctx context.Context, in *NetmapCreate) (*NetmapCreateReply, error) NetmapDelete(ctx context.Context, in *NetmapDelete) (*NetmapDeleteReply, error) }
RPCService defines RPC service netmap.
func NewServiceClient ¶
func NewServiceClient(conn api.Connection) RPCService
Click to show internal directories.
Click to hide internal directories.