Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Exponential ¶
type Exponential struct {
// Min is the minimal backoff time, if unspecified, 1 second will be
// used
Min time.Duration
// Max is the maximum backoff time, if unspecified, no maximum time is
// applied
Max time.Duration
// Factor is the factor the backoff time grows exponentially, if
// unspecified, a factor of 2.0 will be used
Factor float64
// Jitter, when enabled, adds random jitter to the interval
Jitter bool
// NodeManager enables the use of cluster size dependent backoff
// intervals, i.e. the larger the cluster, the longer the backoff
// interval
NodeManager NodeManager
// Name is a free form string describing the operation subject to the
// backoff, if unspecified, a UUID is generated. This string is used
// for logging purposes.
Name string
// contains filtered or unexported fields
}
Exponential implements an exponential backoff
Click to show internal directories.
Click to hide internal directories.