Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var DEFAULT_TIMEOUT = 300
DEFAULT_TIMEOUT is the default number of times to loop before deciding that the port is not available. By default, it is set to 300 seconds.
var LOOP_FOREVER = false
LOOP_TIMEOUT Set to true to loop forever instead of timing out
Functions ¶
func HostPortSleep ¶
HostPortSleep until host:port is available, or timeout after DEFAULT_TIMEOUT seconds. return true if the port is available, false if the timeout is reached
func PortSleep ¶
PortSleep until port is available, or timeout after DEFAULT_TIMEOUT seconds. return true if the port is available, false if the timeout is reached
func SleepAddrLoop ¶
func SleepAddrLoop(addr string)
SleepAddrLoop until addr is available, or timeout after DEFAULT_TIMEOUT seconds panic when the timeout is reached.
func SleepHostLoop ¶
SleepHostLoop until host:port is available, or timeout after DEFAULT_TIMEOUT seconds panic when the timeout is reached.
Types ¶
This section is empty.