Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cenkalti/backoff
/ types & classes
Types & classes
18 in github.com/cenkalti/backoff
⨍
Functions
85
◇
Types & classes
18
Interface
BackOff
BackOff is a backoff policy for retrying an operation.
backoff.go:20
Struct
ConstantBackOff
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
Struct
ExponentialBackOff
* ExponentialBackOff is a backoff implementation that increases the backoff period for each retry attempt using a randomization function that grows ex
exponential.go:48
FuncType
Notify
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
FuncType
Operation
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
Struct
RetryAfterError
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
Struct
RetryError
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
FuncType
RetryOption
RetryOption configures the behavior of Retry.
retry.go:33
Struct
StopBackOff
StopBackOff is a fixed backoff policy that always returns backoff.Stop for NextBackOff(), meaning that the operation should never be retried.
backoff.go:52
Struct
Ticker
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
Struct
ZeroBackOff
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
Struct
countingBackOff
countingBackOff records how many times it is reset and queried.
retry_test.go:384
Struct
defaultTimer
defaultTimer implements Timer interface using time.Timer
timer.go:12
Struct
permanent
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
Struct
retryOptions
retryOptions holds configuration settings for the retry mechanism.
retry.go:24
Struct
spyTimer
spyTimer records the durations it is asked to wait, then fires immediately.
retry_test.go:365
Struct
testTimer
retry_test.go:14
Interface
timer
timer.go:5