Documentation ¶
Overview ¶
Package l2e contains generated bindings for API file l2e.api.
Contents:
2 messages
Index ¶
- Constants
- func AllMessages() []api.Message
- type L2Emulation
- func (*L2Emulation) GetCrcString() string
- func (*L2Emulation) GetMessageName() string
- func (*L2Emulation) GetMessageType() api.MessageType
- func (m *L2Emulation) Marshal(b []byte) ([]byte, error)
- func (m *L2Emulation) Reset()
- func (m *L2Emulation) Size() (size int)
- func (m *L2Emulation) Unmarshal(b []byte) error
- type L2EmulationReply
- func (*L2EmulationReply) GetCrcString() string
- func (*L2EmulationReply) GetMessageName() string
- func (*L2EmulationReply) GetMessageType() api.MessageType
- func (m *L2EmulationReply) Marshal(b []byte) ([]byte, error)
- func (m *L2EmulationReply) Reset()
- func (m *L2EmulationReply) Size() (size int)
- func (m *L2EmulationReply) Unmarshal(b []byte) error
- type RPCService
Constants ¶
View Source
const ( APIFile = "l2e" APIVersion = "1.0.0" VersionCrc = 0x6e8abdfb )
Variables ¶
This section is empty.
Functions ¶
func AllMessages ¶
Messages returns list of all messages in this module.
Types ¶
type L2Emulation ¶
type L2Emulation struct { SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"` Enable bool `binapi:"bool,name=enable" json:"enable,omitempty"` }
L2Emulation defines message 'l2_emulation'. InProgress: the message form may change in the future versions
func (*L2Emulation) GetCrcString ¶
func (*L2Emulation) GetCrcString() string
func (*L2Emulation) GetMessageName ¶
func (*L2Emulation) GetMessageName() string
func (*L2Emulation) GetMessageType ¶
func (*L2Emulation) GetMessageType() api.MessageType
func (*L2Emulation) Reset ¶
func (m *L2Emulation) Reset()
func (*L2Emulation) Size ¶
func (m *L2Emulation) Size() (size int)
func (*L2Emulation) Unmarshal ¶
func (m *L2Emulation) Unmarshal(b []byte) error
type L2EmulationReply ¶
type L2EmulationReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
L2EmulationReply defines message 'l2_emulation_reply'. InProgress: the message form may change in the future versions
func (*L2EmulationReply) GetCrcString ¶
func (*L2EmulationReply) GetCrcString() string
func (*L2EmulationReply) GetMessageName ¶
func (*L2EmulationReply) GetMessageName() string
func (*L2EmulationReply) GetMessageType ¶
func (*L2EmulationReply) GetMessageType() api.MessageType
func (*L2EmulationReply) Reset ¶
func (m *L2EmulationReply) Reset()
func (*L2EmulationReply) Size ¶
func (m *L2EmulationReply) Size() (size int)
func (*L2EmulationReply) Unmarshal ¶
func (m *L2EmulationReply) Unmarshal(b []byte) error
type RPCService ¶
type RPCService interface {
L2Emulation(ctx context.Context, in *L2Emulation) (*L2EmulationReply, error)
}
RPCService defines RPC service l2e.
func NewServiceClient ¶
func NewServiceClient(conn api.Connection) RPCService
Click to show internal directories.
Click to hide internal directories.