Documentation ¶
Index ¶
- func PrintEnums()
- type LpmV4Key
- type LpmV6Key
- type MacKey
- type PortKey
- type PortKeyGo
- type PortProtocol
- func (p PortProtocol) MarshalJSON() ([]byte, error)
- func (p PortProtocol) MarshalYAML() (interface{}, error)
- func (p *PortProtocol) Set(val string) error
- func (p PortProtocol) String() string
- func (p *PortProtocol) UnmarshalJSON(data []byte) error
- func (p *PortProtocol) UnmarshalYAML(value *yaml.Node) error
- func (p PortProtocol) Val() uint8
- type PortType
- func (p PortType) MarshalJSON() ([]byte, error)
- func (p PortType) MarshalYAML() (interface{}, error)
- func (p *PortType) Set(val string) error
- func (p PortType) String() string
- func (p *PortType) UnmarshalJSON(data []byte) error
- func (p *PortType) UnmarshalYAML(value *yaml.Node) error
- func (p PortType) Val() uint8
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintEnums ¶
func PrintEnums()
Types ¶
type MacKey ¶
func ParseFromSrtMac ¶
type PortKey ¶
type PortKey C.struct_port_key
func GetPortKey ¶
func GetPortKey(tp PortType, p PortProtocol, port uint32) PortKey
func PortKeyPtr ¶
func PortKeyVal ¶
func (*PortKey) MarshalJSON ¶
func (*PortKey) MarshalYAML ¶
func (*PortKey) UnmarshalJSON ¶
func (*PortKey) UnmarshalYAML ¶
type PortProtocol ¶
type PortProtocol C.enum_port_protocol
const ( TCPPort PortProtocol = C.tcp_port UDPPort PortProtocol = C.udp_port )
func (PortProtocol) MarshalJSON ¶
func (p PortProtocol) MarshalJSON() ([]byte, error)
func (PortProtocol) MarshalYAML ¶
func (p PortProtocol) MarshalYAML() (interface{}, error)
func (*PortProtocol) Set ¶
func (p *PortProtocol) Set(val string) error
it's for using with flag package
func (PortProtocol) String ¶
func (p PortProtocol) String() string
func (*PortProtocol) UnmarshalJSON ¶
func (p *PortProtocol) UnmarshalJSON(data []byte) error
func (*PortProtocol) UnmarshalYAML ¶
func (p *PortProtocol) UnmarshalYAML(value *yaml.Node) error
func (PortProtocol) Val ¶
func (p PortProtocol) Val() uint8
type PortType ¶
type PortType C.enum_port_type
const ( DestinationPort PortType = C.destination_port SourcePort PortType = C.source_port )
func (PortType) MarshalJSON ¶
func (PortType) MarshalYAML ¶
func (*PortType) UnmarshalJSON ¶
func (*PortType) UnmarshalYAML ¶
Click to show internal directories.
Click to hide internal directories.