# Packages
Package freeport provides a helper for allocating free ports across multiple processes on the same machine.
# Functions
No description provided by the author
ComputeDistance returns the distance between the two network coordinates in seconds.
DurationMinusBuffer returns a duration, minus a buffer and jitter subtracted from the duration.
DurationMinusBufferDomain returns the domain of valid durations from a call to DurationMinusBuffer.
EnsurePath is used to make sure a path exists.
GenerateCoordinate creates a new coordinate with the given distance from the origin.
IsErrEOF returns true if we get an EOF error from the socket itself, or an EOF equivalent error from yamux.
No description provided by the author
No description provided by the author
RandomStagger returns an interval between 0 and the duration.
RateScaledInterval is used to choose an interval to perform an action in order to target an aggregate number of actions per second across the whole cluster.
SeedMathRand provides weak, but guaranteed seeding, which is better than running with Go's default seed of 1.
SerfDefaultConfig returns a Consul-flavored Serf default configuration, suitable as a basis for a LAN, WAN, segment, or area.
StrContains checks if a list contains a string.
# Variables
SeededSecurely is set to true if a cryptographically secure seed was used to initialize rand.
# Type aliases
CoordinateSet holds all the coordinates for a given node, indexed by network segment name.