Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RESET_AFTER time.Duration
RESET_AFTER is the duration of no-retry period (`Wait` was not called) after which retry stats will be resetted. Calling `Wait` after reset happens is effectively the same as calling `Wait` the very first time.
Functions ¶
This section is empty.
Types ¶
type ProgressiveRetryer ¶
type ProgressiveRetryer struct {
// contains filtered or unexported fields
}
ProgressiveRetryer retries until a configurable limit (retryLimit), but with progressive delaysf (5secs -> 5mins) that resets itself after 20 minutes of no-retry.
func (*ProgressiveRetryer) Wait ¶
func (retry *ProgressiveRetryer) Wait(msg string) bool
Click to show internal directories.
Click to hide internal directories.