Documentation
¶
Index ¶
- Variables
- func GetAllAvailableIPs(v4 bool) ([]string, error)
- func GetAllAvailableIPsFromAddrs(addrs []net.Addr, v4 bool) ([]string, error)
- func GetAnyAvailableIP(v4 bool) (string, error)
- func GetAnyAvailableIPFromAddrs(addrs []net.Addr, v4 bool) (string, error)
- func GetHostIP(v4 bool) (string, error)
- func GetHostIPByHostname(h string) (string, error)
- func GetHostIPByInterface(iface string, v4 bool) (string, error)
- func GetHostname() (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
MyIP, _ = GetHostIP(true)
TryIfaces = []string{"eth0", "eth1", "eth2", "eth3", "eth4", "eth5", "bond0", "bond1", "bond2", "bond3", "bond4", "bond5"}
)
Functions ¶
func GetAllAvailableIPs ¶ added in v0.11.36
func GetAllAvailableIPsFromAddrs ¶ added in v0.11.36
func GetAnyAvailableIP ¶
func GetAnyAvailableIPFromAddrs ¶ added in v0.11.36
func GetHostIPByHostname ¶
func GetHostname ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.