Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackOff ¶
type BackOff struct { // The period for which failures will be evaluated. Period time.Duration // The amount of delay to add after each additional failure (can not // be zero). X time.Duration // The Maximum back off allowed. Max time.Duration // contains filtered or unexported fields }
Tracks errors and automatically backs off if there has been too many issues in a short period of time. This implements a exponential back off when too many errors have been encountered over a short period.
Click to show internal directories.
Click to hide internal directories.