Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address []byte
func New_Address ¶
func New_Address(Type AddressType, Protocol Protocol, Port uint16, Host string) Address
func Serialize_Address ¶
func (Address) Type ¶
func (s Address) Type() AddressType
func (Address) Vstruct_Validate ¶
type AddressType ¶
type AddressType uint8
const ( AddressType_IPv4 AddressType = 0 AddressType_IPv6 AddressType = 1 AddressType_DNS_A AddressType = 2 AddressType_DNS_AAAA AddressType = 3 AddressType_DNS_SRV AddressType = 4 )
func (AddressType) Match ¶
func (e AddressType) Match( onIPv4 func(), onIPv6 func(), onDNS_A func(), onDNS_AAAA func(), onDNS_SRV func(), )
func (AddressType) MatchS ¶
func (e AddressType) MatchS(s struct { onIPv4 func() onIPv6 func() onDNS_A func() onDNS_AAAA func() onDNS_SRV func() })
func (AddressType) String ¶
func (e AddressType) String() string
type Protocol ¶
type Protocol uint8
func (Protocol) Match ¶
func (e Protocol) Match( onTCP func(), onUDP func(), onTLS func(), onDTLS func(), onWS func(), onWSS func(), onQUIC func(), )
Click to show internal directories.
Click to hide internal directories.