Discover Packages
gh.neting.cc/amalgam8/amalgam8
registry
utils
network
package
Version:
v0.3.1
Opens a new window with list of versions in this module.
Published: Sep 21, 2016
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
func GetPrivateIP() net .IP
GetPrivateIP returns a private IP address, or panics if no IP is available.
func WaitForPrivateNetwork() bool
WaitForPrivateNetwork blocks until a private IP address is available, or a timeout is reached.
Returns 'true' if a private IP is available before timeout is reached, and 'false' otherwise.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.