Versions in this module Expand all Collapse all v0 v0.1.8 May 18, 2020 Changes in this version + func PrintEnums() + type LpmV4Key C.struct_lpm_v4_key + func GetLpmV4Key(prefix uint8, address [4]uint8) LpmV4Key + func ParseFromSrtV4(ipStr string) (key LpmV4Key, err error) + type LpmV6Key C.struct_lpm_v6_key + func GetLpmV6Key(prefix uint8, address [16]uint8) LpmV6Key + func ParseFromSrtV6(ipStr string) (key LpmV6Key, err error) + type MacKey [6]C.uchar + func GetMacKey(address [6]uint8) MacKey + func ParseFromSrtMac(macStr string) (key MacKey, err error) + func (m MacKey) GetCharByIndex(index uint8) C.uchar + type PortKey C.struct_port_key + func GetPortKey(tp PortType, p PortProtocol, port uint32) PortKey + func PortKeyPtr(v *PortKey) PortKey + func PortKeyVal(v PortKey) *PortKey + func (p *PortKey) MarshalJSON() ([]byte, error) + func (p *PortKey) MarshalYAML() (interface{}, error) + func (p *PortKey) UnmarshalJSON(data []byte) (err error) + func (p *PortKey) UnmarshalYAML(unmarshal func(interface{}) error) error + type PortKeyGo struct + Port uint16 + Type uint16 + type PortProtocol C.enum_port_protocol + const TCPPort + const UDPPort + func (p *PortProtocol) Set(val string) error + func (p *PortProtocol) UnmarshalJSON(data []byte) error + func (p *PortProtocol) UnmarshalYAML(value *yaml.Node) error + func (p PortProtocol) MarshalJSON() ([]byte, error) + func (p PortProtocol) MarshalYAML() (interface{}, error) + func (p PortProtocol) String() string + func (p PortProtocol) Val() uint8 + type PortType C.enum_port_type + const DestinationPort + const SourcePort + func (p *PortType) Set(val string) error + func (p *PortType) UnmarshalJSON(data []byte) error + func (p *PortType) UnmarshalYAML(value *yaml.Node) error + func (p PortType) MarshalJSON() ([]byte, error) + func (p PortType) MarshalYAML() (interface{}, error) + func (p PortType) String() string + func (p PortType) Val() uint8