Documentation ¶
Index ¶
- func BenchmarkIPv4AddAndRemove(b *testing.B)
- func BenchmarkIPv4Ceiling(b *testing.B)
- func BenchmarkIPv4Contains(b *testing.B)
- func BenchmarkIPv4ElementContains(b *testing.B)
- func BenchmarkIPv4ElementNotContains(b *testing.B)
- func BenchmarkIPv4ElementsContainedBy(b *testing.B)
- func BenchmarkIPv4ElementsContaining(b *testing.B)
- func BenchmarkIPv4Floor(b *testing.B)
- func BenchmarkIPv4LongestPrefixMatch(b *testing.B)
- func BenchmarkIPv4LongestPrefixNoMatch(b *testing.B)
- func BenchmarkIPv4NotContains(b *testing.B)
- func BenchmarkIPv4ShortestPrefixMatch(b *testing.B)
- func BenchmarkIPv4ShortestPrefixNoMatch(b *testing.B)
- func BenchmarkIPv6AddAndRemove(b *testing.B)
- func BenchmarkIPv6Ceiling(b *testing.B)
- func BenchmarkIPv6Contains(b *testing.B)
- func BenchmarkIPv6ElementContains(b *testing.B)
- func BenchmarkIPv6ElementNotContains(b *testing.B)
- func BenchmarkIPv6ElementsContainedBy(b *testing.B)
- func BenchmarkIPv6ElementsContaining(b *testing.B)
- func BenchmarkIPv6Floor(b *testing.B)
- func BenchmarkIPv6LongestPrefixMatch(b *testing.B)
- func BenchmarkIPv6LongestPrefixNoMatch(b *testing.B)
- func BenchmarkIPv6NotContains(b *testing.B)
- func BenchmarkIPv6ShortestPrefixMatch(b *testing.B)
- func BenchmarkIPv6ShortestPrefixNoMatch(b *testing.B)
- func NewAssociativeAddressGenericTrie[V any]() *goip.AssociativeTrie[*goip.Address, V]
- func NewIPv4AddressAssociativeGenericTrie[V any]() *goip.AssociativeTrie[*goip.Address, V]
- func NewIPv6AddressAssociativeGenericTrie[V any]() *goip.AssociativeTrie[*goip.Address, V]
- func Test(isLimited bool)
- func TestTrieCreation(t *testing.T)
- func ToPort(i goip.PortInt) goip.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 BenchmarkIPv4Ceiling ¶
func BenchmarkIPv4Contains ¶
func BenchmarkIPv4Floor ¶
func BenchmarkIPv6Ceiling ¶
func BenchmarkIPv6Contains ¶
func BenchmarkIPv6Floor ¶
func NewAssociativeAddressGenericTrie ¶
func NewAssociativeAddressGenericTrie[V any]() *goip.AssociativeTrie[*goip.Address, V]
func NewIPv4AddressAssociativeGenericTrie ¶
func NewIPv4AddressAssociativeGenericTrie[V any]() *goip.AssociativeTrie[*goip.Address, V]
func NewIPv6AddressAssociativeGenericTrie ¶
func NewIPv6AddressAssociativeGenericTrie[V any]() *goip.AssociativeTrie[*goip.Address, V]
func TestTrieCreation ¶
Types ¶
type AddrConstraint ¶
type AddrConstraint[T goip.KeyConstraint[T]] interface { goip.GenericKeyConstraint[T] goip.AddressType }
type AddressTrie ¶
type AddressTrie = goip.AddressTrie
func NewAddressGenericTrie ¶
func NewAddressGenericTrie() *AddressTrie
func NewIPv4AddressGenericTrie ¶
func NewIPv4AddressGenericTrie() *AddressTrie
func NewIPv6AddressGenericTrie ¶
func NewIPv6AddressGenericTrie() *AddressTrie
type ExpectedPrefixes ¶
type ExpectedPrefixes struct {
// contains filtered or unexported fields
}
type IPAddressActionAdapter ¶
IPAddressActionAdapter has methods to supply IP, IPv4, and IPv6 addresses to a wrapped consumer function that takes Address arguments
func (IPAddressActionAdapter) IPAction ¶
func (a IPAddressActionAdapter) IPAction(addr *goip.IPAddress)
IPAction calls the wrapped consumer function with the given IP address as the argument
func (IPAddressActionAdapter) IPv4Action ¶
func (a IPAddressActionAdapter) IPv4Action(addr *goip.IPv4Address)
IPv4Action calls the wrapped consumer function with the given IPv4 address as the argument
func (IPAddressActionAdapter) IPv6Action ¶
func (a IPAddressActionAdapter) IPv6Action(addr *goip.IPv6Address)
IPv6Action calls the wrapped consumer function with the given IPv6 address as the argument
type IPAddressPredicateAdapter ¶
IPAddressPredicateAdapter has methods to supply IP, IPv4, and IPv6 addresses to a wrapped predicate function that takes Address arguments
func (IPAddressPredicateAdapter) IPPredicate ¶
func (a IPAddressPredicateAdapter) IPPredicate(addr *goip.IPAddress) bool
IPPredicate calls the wrapped predicate function with the given IP address as the argument
func (IPAddressPredicateAdapter) IPv4Predicate ¶
func (a IPAddressPredicateAdapter) IPv4Predicate(addr *goip.IPv4Address) bool
IPv4Predicate calls the wrapped predicate function with the given IPv4 address as the argument
func (IPAddressPredicateAdapter) IPv6Predicate ¶
func (a IPAddressPredicateAdapter) IPv6Predicate(addr *goip.IPv6Address) bool
IPv6Predicate calls the wrapped predicate function with the given IPv6 address as the argument