Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHostName ¶
func GetHostName() string
GetHostName returns the hostname reported by the kernel. If resolution fails, 'unknown' is returned.
func GetHostNameOrIP ¶
func GetHostNameOrIP() string
GetHostNameOrIP returns the hostname reported by the kernel falling back to outbound ip if hostname could not be resolved If resolution fails, 'unknown' is returned.
func GetOutboundIP ¶
func GetOutboundIP() string
GetOutboundIP returns the preferred outbound ip of this node If resolution fails, 'unknown' is returned.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.