MCPcopy Create free account

hub / github.com/cenkalti/backoff / types & classes

Types & classes18 in github.com/cenkalti/backoff

InterfaceBackOff
BackOff is a backoff policy for retrying an operation.
backoff.go:20
StructConstantBackOff
ConstantBackOff is a backoff policy that always returns the same backoff delay. This is in contrast to an exponential backoff policy, which returns a
backoff.go:61
StructExponentialBackOff
* ExponentialBackOff is a backoff implementation that increases the backoff period for each retry attempt using a randomization function that grows ex
exponential.go:48
FuncTypeNotify
Notify is called after a failed attempt that will be retried, with the operation error and the backoff duration before the next attempt. It is called
retry.go:21
FuncTypeOperation
Operation is the function Retry calls. It is invoked at least once and may be retried on error. Return a Permanent error to stop retrying immediately,
retry.go:15
StructRetryAfterError
RetryAfterError signals that the operation should be retried after the given duration. When an operation returns one (directly or wrapped), Retry wait
error.go:116
StructRetryError
RetryError is the error returned by Retry for every failure. It records the last error returned by the operation (LastErr) together with the reason re
error.go:47
FuncTypeRetryOption
RetryOption configures the behavior of Retry.
retry.go:33
StructStopBackOff
StopBackOff is a fixed backoff policy that always returns backoff.Stop for NextBackOff(), meaning that the operation should never be retried.
backoff.go:52
StructTicker
Ticker holds a channel that delivers `ticks' of a clock at times reported by a BackOff. Ticks will continue to arrive when the previous operation is
ticker.go:12
StructZeroBackOff
ZeroBackOff is a fixed backoff policy whose backoff time is always zero, meaning that the operation is retried immediately without waiting, indefinite
backoff.go:44
StructcountingBackOff
countingBackOff records how many times it is reset and queried.
retry_test.go:384
StructdefaultTimer
defaultTimer implements Timer interface using time.Timer
timer.go:12
Structpermanent
permanent marks an operation error as non-retriable. It is an internal transport produced by Permanent and consumed by Retry, which converts it into a
error.go:78
StructretryOptions
retryOptions holds configuration settings for the retry mechanism.
retry.go:24
StructspyTimer
spyTimer records the durations it is asked to wait, then fires immediately.
retry_test.go:365
StructtestTimer
retry_test.go:14
Interfacetimer
timer.go:5