# Functions
FullJitter returns a random number, uniformly chosen from the range [min, boundedDur].
NewBackoffConnector creates a utility to connect to peers, but only if we have not recently tried connecting to them already cacheSize is the size of a TwoQueueCache connectionTryDuration is how long we attempt to connect to a peer before giving up backoff describes the strategy used to decide how long to backoff after previously attempting to connect to a peer.
NewExponentialBackoff creates a BackoffFactory with backoff of the form base^x + offset where x is the attempt number jitter is the function for adding randomness around the backoff timeUnits are the units of time the base^x is evaluated in.
NewExponentialDecorrelatedJitter creates a BackoffFactory with backoff of the roughly of the form base^x where x is the attempt number.
NewFixedBackoff creates a BackoffFactory with a constant backoff duration.
NewPolynomialBackoff creates a BackoffFactory with backoff of the form c0*x^0, c1*x^1, ...cn*x^n where x is the attempt number jitter is the function for adding randomness around the backoff timeUnits are the units of time the polynomial is evaluated in polyCoefs is the array of polynomial coefficients from [c0, c1, ..
NoJitter returns the duration bounded between min and max.
WithBackoffDiscoveryReturnedChannelSize sets the size of the buffer to be used during a FindPeer query.
WithBackoffDiscoverySimultaneousQueryBufferSize sets the buffer size for the channels between the main FindPeers query for a given namespace and all simultaneous FindPeers queries for the namespace.
# Structs
BackoffConnector is a utility to connect to peers, but only if we have not recently tried connecting to them already.
BackoffDiscovery is an implementation of discovery that caches peer data and attenuates repeated queries.
# Interfaces
BackoffStrategy describes how backoff will be implemented.