Documentation ¶
Index ¶
- func GetAllIPs(predicates ...AddressPredicate) ([]string, error)
- func IsAddressIPv6(address string) bool
- func NonLoopback(address *net.IPNet) bool
- func PickTCPPort(ip string, leftPort, rightPort uint32) (uint32, error)
- func ReserveTCPAddr(address string) (uint32, error)
- func ToV6(ip string) string
- type AddressPredicate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllIPs ¶
func GetAllIPs(predicates ...AddressPredicate) ([]string, error)
GetAllIPs returns all IPs (IPv4 and IPv6) from the all network interfaces on the machine
func IsAddressIPv6 ¶
func NonLoopback ¶
func ReserveTCPAddr ¶
Types ¶
type AddressPredicate ¶
Click to show internal directories.
Click to hide internal directories.