Documentation ¶
Index ¶
- func IsIpV6Addr(ipAddStr string) bool
- func JoinHostPort(host string, port uint16) string
- func JoinIpPort(ip net.IP, port uint16) string
- func Normalize(ip net.IP) net.IP
- func Parse(ipStr string) (ip net.IP)
- func PrefixToRPC(n netip.Prefix) *manager.IPNet
- func PrefixesToRPC(n []netip.Prefix) []*manager.IPNet
- func RPCToPrefix(m *manager.IPNet) netip.Prefix
- func RPCsToPrefixes(n []*manager.IPNet) []netip.Prefix
- func SplitToIPPort(netAddr net.Addr) (net.IP, uint16, error)
- type IPs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsIpV6Addr ¶ added in v2.11.0
func JoinHostPort ¶ added in v2.18.0
func Normalize ¶ added in v2.18.0
Normalize returns the four byte version of an IPv4, even if it was expressed as a 16 byte IP.
Types ¶
type IPs ¶
func IPsFromBytesSlice ¶
func UniqueSorted ¶ added in v2.8.0
func (IPs) BytesSlice ¶
BytesSlice is returns a [][]byte copy of the IPs.
func (IPs) UniqueSorted ¶
Click to show internal directories.
Click to hide internal directories.