Documentation ¶
Index ¶
- type AddressFamily
- type IsIPv6
- type Prefix
- func (r *Prefix) GetAddressFamily() AddressFamily
- func (r *Prefix) GetAddressPrefixLength() PrefixLength
- func (r *Prefix) GetFirstIPAddress() netip.Addr
- func (r *Prefix) GetFirstIPPrefix() netip.Prefix
- func (r *Prefix) GetIPAddress() netip.Addr
- func (r *Prefix) GetIPAddressPrefix() netip.Prefix
- func (r *Prefix) GetIPPrefix() netip.Prefix
- func (r *Prefix) GetIPPrefixWithPrefixLength(pl int) netip.Prefix
- func (r *Prefix) GetIPSubnet() netip.Prefix
- func (r *Prefix) GetLastIPAddress() netip.Addr
- func (r *Prefix) GetLastIPPrefix() netip.Prefix
- func (r *Prefix) GetPrefixLength() PrefixLength
- func (r *Prefix) GetSubnetName() string
- func (r *Prefix) IsAddressPrefix() bool
- func (r *Prefix) IsFirst() bool
- func (r *Prefix) IsIpv4() bool
- func (r *Prefix) IsIpv6() bool
- func (r *Prefix) IsLast() bool
- func (r *Prefix) IsNorLastNorFirst() bool
- func (r *Prefix) IsPrefixPresentInSubnetMap(prefix string) bool
- type PrefixClaims
- type PrefixLength
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressFamily ¶
type AddressFamily string
const ( AddressFamilyIpv4 AddressFamily = "ipv4" AddressFamilyIpv6 AddressFamily = "ipv6" AddressFamilyUnknown AddressFamily = "unknown" )
func (AddressFamily) String ¶
func (s AddressFamily) String() string
type Prefix ¶
func NewPrefixInfo ¶
func (*Prefix) GetAddressFamily ¶
func (r *Prefix) GetAddressFamily() AddressFamily
func (*Prefix) GetAddressPrefixLength ¶
func (r *Prefix) GetAddressPrefixLength() PrefixLength
return 32 or 128
func (*Prefix) GetFirstIPAddress ¶
func (*Prefix) GetFirstIPPrefix ¶
func (*Prefix) GetIPAddress ¶
func (*Prefix) GetIPAddressPrefix ¶
func (*Prefix) GetIPPrefix ¶
func (*Prefix) GetIPPrefixWithPrefixLength ¶
func (*Prefix) GetIPSubnet ¶
func (*Prefix) GetLastIPAddress ¶
func (*Prefix) GetLastIPPrefix ¶
func (*Prefix) GetPrefixLength ¶
func (r *Prefix) GetPrefixLength() PrefixLength
func (*Prefix) GetSubnetName ¶
func (*Prefix) IsAddressPrefix ¶
func (*Prefix) IsNorLastNorFirst ¶
func (*Prefix) IsPrefixPresentInSubnetMap ¶
type PrefixClaims ¶
func (PrefixClaims) AddPrefix ¶
func (r PrefixClaims) AddPrefix(isIPv6 IsIPv6, prefix *string)
type PrefixLength ¶
type PrefixLength int
func (PrefixLength) Int ¶
func (r PrefixLength) Int() int
func (PrefixLength) String ¶
func (r PrefixLength) String() string
Click to show internal directories.
Click to hide internal directories.