package
18.0.0-dev.vnet-windows.4+incompatible
Repository: https://github.com/gravitational/teleport.git
Documentation: pkg.go.dev

# Functions

DefaultJitter is a default jitter (currently [HalfJitter], i.e.
FullJitter is a jitter on the range [0, d).
HalfJitter is a jitter on the range [d/2, d).
NewConstant returns a new linear retry with constant interval.
NewExponentialDriver creates a new exponential retry driver with the supplied base step value.
NewFullJitter returns [FullJitter], i.e.
NewHalfJitter returns [HalfJitter], i.e.
NewJitter returns a default jitter (currently [HalfJitter], i.e.
NewLinear returns a new instance of linear retry.
NewLinearDriver creates a linear retry driver with the supplied step value.
NewRetryV2 returns a new retry instance.
NewSeventhJitter returns [SeventhJitter], i.e.
NewShardedFullJitter returns [FullJitter], i.e.
NewShardedHalfJitter returns [HalfJitter], i.e.
NewShardedSeventhJitter returns [SeventhJitter], i.e.
PermanentRetryError returns a new instance of a permanent retry error.
RetryStaticFor retries a function repeatedly for a set amount of time before returning an error.
SeventhJitter returns a jitter on the range [6d/7, d).

# Structs

Linear is used to calculate retry period that follows the following logic: On the first error there is no delay on the next error, delay is FastLinear on all other errors, delay is SlowLinear.
LinearConfig sets up retry configuration using arithmetic progression.
RetryV2 is used to moderate the rate of retries by applying successively increasing delays.
RetryV2Config sets up retry configuration using arithmetic progression.

# Interfaces

driver is the underlying retry driver.
Retry is an interface that provides retry logic.

# Type aliases

Jitter is a function which applies random jitter to a duration.