Documentation ¶
Overview ¶
Package codec provides methods allowing to encode and decode message structs to/from binary format accepted by VPP.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MsgCodec ¶
type MsgCodec struct{}
MsgCodec provides encoding and decoding functionality of `api.Message` structs into/from binary format as accepted by VPP.
func (*MsgCodec) DecodeMsg ¶
DecodeMsg decodes binary-encoded data of a message into provided `Message` structure.
func (*MsgCodec) DecodeMsgContext ¶
type VppEventHeader ¶
VppEventHeader struct contains header fields implemented by all VPP events.
type VppOtherHeader ¶
type VppOtherHeader struct {
VlMsgID uint16
}
VppOtherHeader struct contains header fields implemented by other VPP messages (not requests nor replies).
type VppReplyHeader ¶
VppReplyHeader struct contains header fields implemented by all VPP replies.
type VppRequestHeader ¶
VppRequestHeader struct contains header fields implemented by all VPP requests.