Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func HostIPs ¶
HostIPs returns public and private IPs assigned to various interfaces on current host.
func IsPrivateIP ¶
func NodeIP ¶
NodeIP returns a IPv4 address for a given set of interface names. It always prefers a private IP over a public IP. If no interface name is given, all interfaces are checked.
func RoutableIPs ¶
RoutableIPs returns routable public and private IPs associated with current host. It will also use https://ipinfo.io/ip to detect public IP, if no public IP is assigned to a host interface.
Types ¶
Directories ¶
Path | Synopsis |
---|---|
Package httpclient provides a simple Golang Client for JSON Http Microservices
|
Package httpclient provides a simple Golang Client for JSON Http Microservices |
Click to show internal directories.
Click to hide internal directories.