Documentation ¶
Overview ¶
Package p2p_ethernet contains generated bindings for API file p2p_ethernet.api.
Contents:
4 messages
Index ¶
- Constants
- func AllMessages() []api.Message
- type P2pEthernetAdd
- func (*P2pEthernetAdd) GetCrcString() string
- func (*P2pEthernetAdd) GetMessageName() string
- func (*P2pEthernetAdd) GetMessageType() api.MessageType
- func (m *P2pEthernetAdd) Marshal(b []byte) ([]byte, error)
- func (m *P2pEthernetAdd) Reset()
- func (m *P2pEthernetAdd) Size() (size int)
- func (m *P2pEthernetAdd) Unmarshal(b []byte) error
- type P2pEthernetAddReply
- func (*P2pEthernetAddReply) GetCrcString() string
- func (*P2pEthernetAddReply) GetMessageName() string
- func (*P2pEthernetAddReply) GetMessageType() api.MessageType
- func (m *P2pEthernetAddReply) Marshal(b []byte) ([]byte, error)
- func (m *P2pEthernetAddReply) Reset()
- func (m *P2pEthernetAddReply) Size() (size int)
- func (m *P2pEthernetAddReply) Unmarshal(b []byte) error
- type P2pEthernetDel
- func (*P2pEthernetDel) GetCrcString() string
- func (*P2pEthernetDel) GetMessageName() string
- func (*P2pEthernetDel) GetMessageType() api.MessageType
- func (m *P2pEthernetDel) Marshal(b []byte) ([]byte, error)
- func (m *P2pEthernetDel) Reset()
- func (m *P2pEthernetDel) Size() (size int)
- func (m *P2pEthernetDel) Unmarshal(b []byte) error
- type P2pEthernetDelReply
- func (*P2pEthernetDelReply) GetCrcString() string
- func (*P2pEthernetDelReply) GetMessageName() string
- func (*P2pEthernetDelReply) GetMessageType() api.MessageType
- func (m *P2pEthernetDelReply) Marshal(b []byte) ([]byte, error)
- func (m *P2pEthernetDelReply) Reset()
- func (m *P2pEthernetDelReply) Size() (size int)
- func (m *P2pEthernetDelReply) Unmarshal(b []byte) error
- type RPCService
Constants ¶
View Source
const ( APIFile = "p2p_ethernet" APIVersion = "1.0.0" VersionCrc = 0x3cfe55da )
Variables ¶
This section is empty.
Functions ¶
func AllMessages ¶
Messages returns list of all messages in this module.
Types ¶
type P2pEthernetAdd ¶
type P2pEthernetAdd struct { ParentIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=parent_if_index" json:"parent_if_index,omitempty"` SubifID uint32 `binapi:"u32,name=subif_id" json:"subif_id,omitempty"` RemoteMac ethernet_types.MacAddress `binapi:"mac_address,name=remote_mac" json:"remote_mac,omitempty"` }
P2pEthernetAdd defines message 'p2p_ethernet_add'.
func (*P2pEthernetAdd) GetCrcString ¶
func (*P2pEthernetAdd) GetCrcString() string
func (*P2pEthernetAdd) GetMessageName ¶
func (*P2pEthernetAdd) GetMessageName() string
func (*P2pEthernetAdd) GetMessageType ¶
func (*P2pEthernetAdd) GetMessageType() api.MessageType
func (*P2pEthernetAdd) Reset ¶
func (m *P2pEthernetAdd) Reset()
func (*P2pEthernetAdd) Size ¶
func (m *P2pEthernetAdd) Size() (size int)
func (*P2pEthernetAdd) Unmarshal ¶
func (m *P2pEthernetAdd) Unmarshal(b []byte) error
type P2pEthernetAddReply ¶
type P2pEthernetAddReply 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"` }
P2pEthernetAddReply defines message 'p2p_ethernet_add_reply'.
func (*P2pEthernetAddReply) GetCrcString ¶
func (*P2pEthernetAddReply) GetCrcString() string
func (*P2pEthernetAddReply) GetMessageName ¶
func (*P2pEthernetAddReply) GetMessageName() string
func (*P2pEthernetAddReply) GetMessageType ¶
func (*P2pEthernetAddReply) GetMessageType() api.MessageType
func (*P2pEthernetAddReply) Marshal ¶
func (m *P2pEthernetAddReply) Marshal(b []byte) ([]byte, error)
func (*P2pEthernetAddReply) Reset ¶
func (m *P2pEthernetAddReply) Reset()
func (*P2pEthernetAddReply) Size ¶
func (m *P2pEthernetAddReply) Size() (size int)
func (*P2pEthernetAddReply) Unmarshal ¶
func (m *P2pEthernetAddReply) Unmarshal(b []byte) error
type P2pEthernetDel ¶
type P2pEthernetDel struct { ParentIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=parent_if_index" json:"parent_if_index,omitempty"` RemoteMac ethernet_types.MacAddress `binapi:"mac_address,name=remote_mac" json:"remote_mac,omitempty"` }
P2pEthernetDel defines message 'p2p_ethernet_del'.
func (*P2pEthernetDel) GetCrcString ¶
func (*P2pEthernetDel) GetCrcString() string
func (*P2pEthernetDel) GetMessageName ¶
func (*P2pEthernetDel) GetMessageName() string
func (*P2pEthernetDel) GetMessageType ¶
func (*P2pEthernetDel) GetMessageType() api.MessageType
func (*P2pEthernetDel) Reset ¶
func (m *P2pEthernetDel) Reset()
func (*P2pEthernetDel) Size ¶
func (m *P2pEthernetDel) Size() (size int)
func (*P2pEthernetDel) Unmarshal ¶
func (m *P2pEthernetDel) Unmarshal(b []byte) error
type P2pEthernetDelReply ¶
type P2pEthernetDelReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
P2pEthernetDelReply defines message 'p2p_ethernet_del_reply'.
func (*P2pEthernetDelReply) GetCrcString ¶
func (*P2pEthernetDelReply) GetCrcString() string
func (*P2pEthernetDelReply) GetMessageName ¶
func (*P2pEthernetDelReply) GetMessageName() string
func (*P2pEthernetDelReply) GetMessageType ¶
func (*P2pEthernetDelReply) GetMessageType() api.MessageType
func (*P2pEthernetDelReply) Marshal ¶
func (m *P2pEthernetDelReply) Marshal(b []byte) ([]byte, error)
func (*P2pEthernetDelReply) Reset ¶
func (m *P2pEthernetDelReply) Reset()
func (*P2pEthernetDelReply) Size ¶
func (m *P2pEthernetDelReply) Size() (size int)
func (*P2pEthernetDelReply) Unmarshal ¶
func (m *P2pEthernetDelReply) Unmarshal(b []byte) error
type RPCService ¶
type RPCService interface { P2pEthernetAdd(ctx context.Context, in *P2pEthernetAdd) (*P2pEthernetAddReply, error) P2pEthernetDel(ctx context.Context, in *P2pEthernetDel) (*P2pEthernetDelReply, error) }
RPCService defines RPC service p2p_ethernet.
func NewServiceClient ¶
func NewServiceClient(conn api.Connection) RPCService
Click to show internal directories.
Click to hide internal directories.