Documentation
¶
Overview ¶
Package udp contains generated bindings for API file udp.api.
Contents:
1 struct 6 messages
Index ¶
- Constants
- func AllMessages() []api.Message
- type RPCService
- type RPCService_UDPEncapDumpClient
- type UDPEncap
- type UDPEncapAdd
- func (*UDPEncapAdd) GetCrcString() string
- func (*UDPEncapAdd) GetMessageName() string
- func (*UDPEncapAdd) GetMessageType() api.MessageType
- func (m *UDPEncapAdd) Marshal(b []byte) ([]byte, error)
- func (m *UDPEncapAdd) Reset()
- func (m *UDPEncapAdd) Size() (size int)
- func (m *UDPEncapAdd) Unmarshal(b []byte) error
- type UDPEncapAddReply
- func (*UDPEncapAddReply) GetCrcString() string
- func (*UDPEncapAddReply) GetMessageName() string
- func (*UDPEncapAddReply) GetMessageType() api.MessageType
- func (m *UDPEncapAddReply) Marshal(b []byte) ([]byte, error)
- func (m *UDPEncapAddReply) Reset()
- func (m *UDPEncapAddReply) Size() (size int)
- func (m *UDPEncapAddReply) Unmarshal(b []byte) error
- type UDPEncapDel
- func (*UDPEncapDel) GetCrcString() string
- func (*UDPEncapDel) GetMessageName() string
- func (*UDPEncapDel) GetMessageType() api.MessageType
- func (m *UDPEncapDel) Marshal(b []byte) ([]byte, error)
- func (m *UDPEncapDel) Reset()
- func (m *UDPEncapDel) Size() (size int)
- func (m *UDPEncapDel) Unmarshal(b []byte) error
- type UDPEncapDelReply
- func (*UDPEncapDelReply) GetCrcString() string
- func (*UDPEncapDelReply) GetMessageName() string
- func (*UDPEncapDelReply) GetMessageType() api.MessageType
- func (m *UDPEncapDelReply) Marshal(b []byte) ([]byte, error)
- func (m *UDPEncapDelReply) Reset()
- func (m *UDPEncapDelReply) Size() (size int)
- func (m *UDPEncapDelReply) Unmarshal(b []byte) error
- type UDPEncapDetails
- func (*UDPEncapDetails) GetCrcString() string
- func (*UDPEncapDetails) GetMessageName() string
- func (*UDPEncapDetails) GetMessageType() api.MessageType
- func (m *UDPEncapDetails) Marshal(b []byte) ([]byte, error)
- func (m *UDPEncapDetails) Reset()
- func (m *UDPEncapDetails) Size() (size int)
- func (m *UDPEncapDetails) Unmarshal(b []byte) error
- type UDPEncapDump
- func (*UDPEncapDump) GetCrcString() string
- func (*UDPEncapDump) GetMessageName() string
- func (*UDPEncapDump) GetMessageType() api.MessageType
- func (m *UDPEncapDump) Marshal(b []byte) ([]byte, error)
- func (m *UDPEncapDump) Reset()
- func (m *UDPEncapDump) Size() (size int)
- func (m *UDPEncapDump) Unmarshal(b []byte) error
Constants ¶
View Source
const ( APIFile = "udp" APIVersion = "1.1.0" VersionCrc = 0x65e4a4b3 )
Variables ¶
This section is empty.
Functions ¶
func AllMessages ¶
Messages returns list of all messages in this module.
Types ¶
type RPCService ¶
type RPCService interface { UDPEncapAdd(ctx context.Context, in *UDPEncapAdd) (*UDPEncapAddReply, error) UDPEncapDel(ctx context.Context, in *UDPEncapDel) (*UDPEncapDelReply, error) UDPEncapDump(ctx context.Context, in *UDPEncapDump) (RPCService_UDPEncapDumpClient, error) }
RPCService defines RPC service udp.
func NewServiceClient ¶
func NewServiceClient(conn api.Connection) RPCService
type RPCService_UDPEncapDumpClient ¶
type RPCService_UDPEncapDumpClient interface { Recv() (*UDPEncapDetails, error) api.Stream }
type UDPEncap ¶
type UDPEncap struct { TableID uint32 `binapi:"u32,name=table_id" json:"table_id,omitempty"` SrcPort uint16 `binapi:"u16,name=src_port" json:"src_port,omitempty"` DstPort uint16 `binapi:"u16,name=dst_port" json:"dst_port,omitempty"` SrcIP ip_types.Address `binapi:"address,name=src_ip" json:"src_ip,omitempty"` DstIP ip_types.Address `binapi:"address,name=dst_ip" json:"dst_ip,omitempty"` ID uint32 `binapi:"u32,name=id" json:"id,omitempty"` }
UDPEncap defines type 'udp_encap'.
type UDPEncapAdd ¶
type UDPEncapAdd struct {
UDPEncap UDPEncap `binapi:"udp_encap,name=udp_encap" json:"udp_encap,omitempty"`
}
UDPEncapAdd defines message 'udp_encap_add'.
func (*UDPEncapAdd) GetCrcString ¶
func (*UDPEncapAdd) GetCrcString() string
func (*UDPEncapAdd) GetMessageName ¶
func (*UDPEncapAdd) GetMessageName() string
func (*UDPEncapAdd) GetMessageType ¶
func (*UDPEncapAdd) GetMessageType() api.MessageType
func (*UDPEncapAdd) Reset ¶
func (m *UDPEncapAdd) Reset()
func (*UDPEncapAdd) Size ¶
func (m *UDPEncapAdd) Size() (size int)
func (*UDPEncapAdd) Unmarshal ¶
func (m *UDPEncapAdd) Unmarshal(b []byte) error
type UDPEncapAddReply ¶
type UDPEncapAddReply struct { Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"` ID uint32 `binapi:"u32,name=id" json:"id,omitempty"` }
UDPEncapAddReply defines message 'udp_encap_add_reply'.
func (*UDPEncapAddReply) GetCrcString ¶
func (*UDPEncapAddReply) GetCrcString() string
func (*UDPEncapAddReply) GetMessageName ¶
func (*UDPEncapAddReply) GetMessageName() string
func (*UDPEncapAddReply) GetMessageType ¶
func (*UDPEncapAddReply) GetMessageType() api.MessageType
func (*UDPEncapAddReply) Reset ¶
func (m *UDPEncapAddReply) Reset()
func (*UDPEncapAddReply) Size ¶
func (m *UDPEncapAddReply) Size() (size int)
func (*UDPEncapAddReply) Unmarshal ¶
func (m *UDPEncapAddReply) Unmarshal(b []byte) error
type UDPEncapDel ¶
type UDPEncapDel struct {
ID uint32 `binapi:"u32,name=id" json:"id,omitempty"`
}
UDPEncapDel defines message 'udp_encap_del'.
func (*UDPEncapDel) GetCrcString ¶
func (*UDPEncapDel) GetCrcString() string
func (*UDPEncapDel) GetMessageName ¶
func (*UDPEncapDel) GetMessageName() string
func (*UDPEncapDel) GetMessageType ¶
func (*UDPEncapDel) GetMessageType() api.MessageType
func (*UDPEncapDel) Reset ¶
func (m *UDPEncapDel) Reset()
func (*UDPEncapDel) Size ¶
func (m *UDPEncapDel) Size() (size int)
func (*UDPEncapDel) Unmarshal ¶
func (m *UDPEncapDel) Unmarshal(b []byte) error
type UDPEncapDelReply ¶
type UDPEncapDelReply struct {
Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
}
UDPEncapDelReply defines message 'udp_encap_del_reply'.
func (*UDPEncapDelReply) GetCrcString ¶
func (*UDPEncapDelReply) GetCrcString() string
func (*UDPEncapDelReply) GetMessageName ¶
func (*UDPEncapDelReply) GetMessageName() string
func (*UDPEncapDelReply) GetMessageType ¶
func (*UDPEncapDelReply) GetMessageType() api.MessageType
func (*UDPEncapDelReply) Reset ¶
func (m *UDPEncapDelReply) Reset()
func (*UDPEncapDelReply) Size ¶
func (m *UDPEncapDelReply) Size() (size int)
func (*UDPEncapDelReply) Unmarshal ¶
func (m *UDPEncapDelReply) Unmarshal(b []byte) error
type UDPEncapDetails ¶
type UDPEncapDetails struct {
UDPEncap UDPEncap `binapi:"udp_encap,name=udp_encap" json:"udp_encap,omitempty"`
}
UDPEncapDetails defines message 'udp_encap_details'.
func (*UDPEncapDetails) GetCrcString ¶
func (*UDPEncapDetails) GetCrcString() string
func (*UDPEncapDetails) GetMessageName ¶
func (*UDPEncapDetails) GetMessageName() string
func (*UDPEncapDetails) GetMessageType ¶
func (*UDPEncapDetails) GetMessageType() api.MessageType
func (*UDPEncapDetails) Reset ¶
func (m *UDPEncapDetails) Reset()
func (*UDPEncapDetails) Size ¶
func (m *UDPEncapDetails) Size() (size int)
func (*UDPEncapDetails) Unmarshal ¶
func (m *UDPEncapDetails) Unmarshal(b []byte) error
type UDPEncapDump ¶
type UDPEncapDump struct{}
UDPEncapDump defines message 'udp_encap_dump'.
func (*UDPEncapDump) GetCrcString ¶
func (*UDPEncapDump) GetCrcString() string
func (*UDPEncapDump) GetMessageName ¶
func (*UDPEncapDump) GetMessageName() string
func (*UDPEncapDump) GetMessageType ¶
func (*UDPEncapDump) GetMessageType() api.MessageType
func (*UDPEncapDump) Reset ¶
func (m *UDPEncapDump) Reset()
func (*UDPEncapDump) Size ¶
func (m *UDPEncapDump) Size() (size int)
func (*UDPEncapDump) Unmarshal ¶
func (m *UDPEncapDump) Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.