Versions in this module Expand all Collapse all v1 v1.7.3 Feb 5, 2024 Changes in this version + type AddrGen interface + Addr func() string + Power func() *big.Int + func ParseAddrRangeSpec(spec string) (AddrGen, error) + type AddrRange struct + func NewAddrRange(start, end netip.Addr) (*AddrRange, error) + func NewAddrRangeFromPrefix(pfx netip.Prefix) (*AddrRange, error) + func (ar *AddrRange) Addr() string + func (ar *AddrRange) Power() *big.Int + type AddrSet struct + func ParseAddrSet(spec string) (*AddrSet, error) + func (as *AddrSet) Endpoint() string + func (as *AddrSet) Power() *big.Int + type EndpointGen interface + Endpoint func() string + Power func() *big.Int + type EqualMultiEndpointGen []EndpointGen + func EqualMultiEndpointGenFromSpecs(specs []string) (EqualMultiEndpointGen, error) + func NewEqualMultiEndpointGen(gens ...EndpointGen) (EqualMultiEndpointGen, error) + func (g EqualMultiEndpointGen) Endpoint() string + func (g EqualMultiEndpointGen) Power() *big.Int + type PortGen interface + Port func() uint16 + Power func() uint16 + func ParsePortRangeSpec(spec string) (PortGen, error) + type PortRange struct + func NewPortRange(start, end uint16) PortRange + func (p PortRange) Port() uint16 + func (p PortRange) Power() uint16 + type SingleAddr string + func (n SingleAddr) Addr() string + func (n SingleAddr) Power() *big.Int + type SingleEndpoint string + func (e SingleEndpoint) Endpoint() string + func (e SingleEndpoint) Power() *big.Int + type SinglePort uint16 + func (p SinglePort) Port() uint16 + func (p SinglePort) Power() uint16