Versions in this module Expand all Collapse all v1 v1.2.10 Dec 12, 2025 Changes in this version + func AddrFromSlice(b []byte) (netip.Addr, bool) + func IsPublic(addr netip.Addr) bool + func Lookup(hostname string) (netip.Addr, error) + func PackIP(p *wrappers.Packer, ip IPPort) + func ParseAddr(s string) (netip.Addr, error) + func ParseAddrPort(s string) (netip.AddrPort, error) + type ClaimedIPPort struct + AddrPort netip.AddrPort + Cert *staking.Certificate + GossipID ids.ID + NodeID ids.NodeID + Signature []byte + Timestamp uint64 + func NewClaimedIPPort(cert *staking.Certificate, ipPort netip.AddrPort, timestamp uint64, ...) *ClaimedIPPort + func (i *ClaimedIPPort) Size() int + type DynamicIPPort interface + IPPort func() IPPort + SetIP func(ip net.IP) + func NewDynamicIPPort(ip net.IP, port uint16) DynamicIPPort + type IPDesc IPPort + func (ipDesc *IPDesc) UnmarshalJSON(b []byte) error + func (ipDesc IPDesc) MarshalJSON() ([]byte, error) + func (ipDesc IPDesc) String() string + type IPPort struct + IP net.IP + Port uint16 + func ToIPPort(str string) (IPPort, error) + func (ipPort IPPort) Equal(other IPPort) bool + func (ipPort IPPort) IsZero() bool + func (ipPort IPPort) String() string