Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrPermanent = errors.New("permanent error")
ErrPermanent defines an error that when returned by an operation shortcircuits the retries process.
Functions ¶
This section is empty.
Types ¶
type Retryer ¶
type Retryer struct {
// contains filtered or unexported fields
}
Retryer allows to execute operations using a retries with exponential backoff and optionally a shortcircuit function.
func NewRetryer ¶
NewRetryer allows to execute operations with retries and shortcircuit.
Click to show internal directories.
Click to hide internal directories.