package
2.8.0
Repository: https://github.com/davron112/lura.git
Documentation: pkg.go.dev

# Functions

DefaultBackoff always returns DefaultBackoffDuration.
ExponentialBackoff returns ever increasing backoffs by a power of 2.
ExponentialJitterBackoff returns ever increasing backoffs by a power of 2 with +/- 0-33% to prevent sychronized requests.
GetByName returns the WaitBeforeRetry function implementing the strategy.
LinearBackoff returns increasing durations, each a second longer than the last.
LinearJitterBackoff returns increasing durations, each a second longer than the last with +/- 0-33% to prevent sychronized requests.

# Variables

DefaultBackoffDuration is the duration returned by the DefaultBackoff.

# Type aliases

TimeToWaitBeforeRetry returns the duration to wait before retrying for the given time.