Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ListenerFormat is the format string that is used to generate local // listener addresses. ListenerFormat = "127.0.0.1:%d" )
Variables ¶
This section is empty.
Functions ¶
func GenerateSystemUniqueListenerAddresses ¶
GenerateSystemUniqueListenerAddresses is a function that returns two listener addresses with unique ports per system and should be used to overwrite rpctest's default generator which is prone to use colliding ports.
func NextAvailablePort ¶
func NextAvailablePort() int
NextAvailablePort returns the first port that is available for listening by a new node, using a lock file to make sure concurrent access for parallel tasks on the same system don't re-use the same port.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.