Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// duration to wait on the retries.
WaitDuration time.Duration `mapstructure:"wait_duration" yaml:"wait_duration" default:"20ms"`
// enable exponential backoff on the retry and jitter.
EnableBackoff bool `mapstructure:"enable_backoff" yaml:"enable_backoff" default:"false"`
// number of times that will be retried in case of error
// before returning the error itself.
MaxTries int `mapstructure:"max_retry" yaml:"max_tries" default:"3"`
// short circuit the retrier if false
Enable bool `mapstructure:"enable" yaml:"enable" default:"true"`
}
type RetryableError ¶
type RetryableError struct {
Err error
}
func (RetryableError) Error ¶
func (rt RetryableError) Error() string
Click to show internal directories.
Click to hide internal directories.