Documentation ¶
Index ¶
- func NewAssociativeAddressGenericTrie[V any]() *ipaddr.AssociativeTrie[*ipaddr.Address, V]
- func NewIPv4AddressAssociativeGenericTrie[V any]() *ipaddr.AssociativeTrie[*ipaddr.Address, V]
- func NewIPv6AddressAssociativeGenericTrie[V any]() *ipaddr.AssociativeTrie[*ipaddr.Address, V]
- func Test(isLimited bool)
- func ToPort(i ipaddr.PortInt) ipaddr.Port
- type AddrConstraint
- type AddressKey
- type AddressTrie
- type AddressTrieNode
- type ExpectedPrefixes
- type IPAddressActionAdapter
- type IPAddressPredicateAdapter
- type Ordering
- type OrderingComparator
- type OrderingSupplier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAssociativeAddressGenericTrie ¶ added in v1.5.0
func NewAssociativeAddressGenericTrie[V any]() *ipaddr.AssociativeTrie[*ipaddr.Address, V]
func NewIPv4AddressAssociativeGenericTrie ¶ added in v1.5.0
func NewIPv4AddressAssociativeGenericTrie[V any]() *ipaddr.AssociativeTrie[*ipaddr.Address, V]
func NewIPv6AddressAssociativeGenericTrie ¶ added in v1.5.0
func NewIPv6AddressAssociativeGenericTrie[V any]() *ipaddr.AssociativeTrie[*ipaddr.Address, V]
Types ¶
type AddrConstraint ¶ added in v1.5.2
type AddrConstraint[T ipaddr.KeyConstraint[T]] interface { ipaddr.GenericKeyConstraint[T] ipaddr.AddressType }
type AddressTrie ¶ added in v1.5.0
type AddressTrie = ipaddr.AddressTrie
func NewAddressGenericTrie ¶ added in v1.5.0
func NewAddressGenericTrie() *AddressTrie
func NewIPv4AddressGenericTrie ¶ added in v1.5.0
func NewIPv4AddressGenericTrie() *AddressTrie
func NewIPv6AddressGenericTrie ¶ added in v1.5.0
func NewIPv6AddressGenericTrie() *AddressTrie
type ExpectedPrefixes ¶
type ExpectedPrefixes struct {
// contains filtered or unexported fields
}
type IPAddressActionAdapter ¶ added in v1.3.0
IPAddressActionAdapter has methods to supply IP, IPv4, and IPv6 addresses to a wrapped consumer function that takes Address arguments
func (IPAddressActionAdapter) IPAction ¶ added in v1.3.0
func (a IPAddressActionAdapter) IPAction(addr *ipaddr.IPAddress)
IPAction calls the wrapped consumer function with the given IP address as the argument
func (IPAddressActionAdapter) IPv4Action ¶ added in v1.3.0
func (a IPAddressActionAdapter) IPv4Action(addr *ipaddr.IPv4Address)
IPv4Action calls the wrapped consumer function with the given IPv4 address as the argument
func (IPAddressActionAdapter) IPv6Action ¶ added in v1.3.0
func (a IPAddressActionAdapter) IPv6Action(addr *ipaddr.IPv6Address)
IPv6Action calls the wrapped consumer function with the given IPv6 address as the argument
type IPAddressPredicateAdapter ¶ added in v1.3.0
IPAddressPredicateAdapter has methods to supply IP, IPv4, and IPv6 addresses to a wrapped predicate function that takes Address arguments
func (IPAddressPredicateAdapter) IPPredicate ¶ added in v1.3.0
func (a IPAddressPredicateAdapter) IPPredicate(addr *ipaddr.IPAddress) bool
IPPredicate calls the wrapped predicate function with the given IP address as the argument
func (IPAddressPredicateAdapter) IPv4Predicate ¶ added in v1.3.0
func (a IPAddressPredicateAdapter) IPv4Predicate(addr *ipaddr.IPv4Address) bool
IPv4Predicate calls the wrapped predicate function with the given IPv4 address as the argument
func (IPAddressPredicateAdapter) IPv6Predicate ¶ added in v1.3.0
func (a IPAddressPredicateAdapter) IPv6Predicate(addr *ipaddr.IPv6Address) bool
IPv6Predicate calls the wrapped predicate function with the given IPv6 address as the argument