test

package
v1.5.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2023 License: Apache-2.0, Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

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]

func Test

func Test(isLimited bool)

func ToPort

func ToPort(i ipaddr.PortInt) ipaddr.Port

Types

type AddrConstraint added in v1.5.2

type AddrConstraint[T ipaddr.KeyConstraint[T]] interface {
	ipaddr.GenericKeyConstraint[T]
	ipaddr.AddressType
}

type AddressKey added in v1.5.0

type AddressKey = ipaddr.Key[*ipaddr.Address]

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 AddressTrieNode added in v1.5.0

type AddressTrieNode = ipaddr.TrieNode[*ipaddr.Address]

type ExpectedPrefixes

type ExpectedPrefixes struct {
	// contains filtered or unexported fields
}

type IPAddressActionAdapter added in v1.3.0

type IPAddressActionAdapter struct {
	Adapted func(*ipaddr.Address)
}

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

type IPAddressPredicateAdapter struct {
	Adapted func(*ipaddr.Address) bool
}

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

type Ordering

type Ordering struct {
	// contains filtered or unexported fields
}

func (*Ordering) CompareTo

func (o *Ordering) CompareTo(other *Ordering) int

type OrderingComparator

type OrderingComparator func(one, two *Ordering) int

type OrderingSupplier

type OrderingSupplier func(string, int) *Ordering

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL