Documentation ¶
Index ¶
- Constants
- type Decoder
- func (d *Decoder) BaseOffset() int
- func (d *Decoder) Bytes() []byte
- func (d *Decoder) Length() int
- func (d *Decoder) Offset() int
- func (d *Decoder) Read(n int) []byte
- func (d *Decoder) ReadByte() byte
- func (d *Decoder) ReadUint128() Uint128
- func (d *Decoder) ReadUint16() uint16
- func (d *Decoder) ReadUint32() uint32
- func (d *Decoder) ReadUint64() uint64
- func (d *Decoder) ReadUint8() uint8
- func (d *Decoder) Skip(n int)
- func (d *Decoder) SkipAlign()
- func (d *Decoder) SliceDecoder(length, rewind int) *Decoder
- type Deserializable
- type Encoder
- func (e *Encoder) Bytes() []byte
- func (e *Encoder) PutChar(c byte)
- func (e *Encoder) PutUint128(i Uint128)
- func (e *Encoder) PutUint16(i uint16)
- func (e *Encoder) PutUint32(i uint32)
- func (e *Encoder) PutUint64(i uint64)
- func (e *Encoder) PutUint8(i uint8)
- func (e *Encoder) SkipAlign()
- func (e *Encoder) Write(b []byte)
- type Header
- type IAction
- type IOxm
- type IOxmId
- type IOxmMasked
- type Message
- type Serializable
- type Uint128
Constants ¶
View Source
const ( VERSION_1_0 = 1 VERSION_1_1 = 2 VERSION_1_2 = 3 VERSION_1_3 = 4 VERSION_1_4 = 5 VERSION_1_5 = 6 )
View Source
const ( OFPTHello = 0 OFPTError = 1 OFPTEchoRequest = 2 OFPTEchoReply = 3 OFPTExperimenter = 4 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
func NewDecoder ¶
func (*Decoder) BaseOffset ¶
func (*Decoder) ReadUint128 ¶
func (*Decoder) ReadUint16 ¶
func (*Decoder) ReadUint32 ¶
func (*Decoder) ReadUint64 ¶
func (*Decoder) SliceDecoder ¶
type Deserializable ¶
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
func NewEncoder ¶
func NewEncoder() *Encoder
func (*Encoder) PutUint128 ¶
type IAction ¶
type IAction interface { Serializable GetType() uint16 GetLen() uint16 GetActionName() string GetActionFields() map[string]interface{} }
type IOxm ¶
type IOxm interface { Serializable GetOXMName() string GetOXMValue() interface{} }
type IOxmId ¶
type IOxmId interface { Serializable GetOXMName() string }
type IOxmMasked ¶
type IOxmMasked interface { Serializable GetOXMName() string GetOXMValue() interface{} GetOXMValueMask() interface{} }
type Serializable ¶
Click to show internal directories.
Click to hide internal directories.