Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EmptyStat = Stat{}
Functions ¶
This section is empty.
Types ¶
type Backoff ¶
type Backoff struct {
// contains filtered or unexported fields
}
func New ¶
func New(opts ...BackoffOption) (*Backoff, error)
type BackoffOption ¶
func WithMaxRetries ¶
func WithMaxRetries(mr uint32) BackoffOption
func WithName ¶
func WithName(name string) BackoffOption
func WithStrategy ¶
func WithStrategy(s Strategy) BackoffOption
type ExponentialOption ¶
func WithJitter ¶
func WithJitter(j float64) ExponentialOption
func WithMaxDelay ¶
func WithMaxDelay(d time.Duration) ExponentialOption
func WithMinDelay ¶
func WithMinDelay(d time.Duration) ExponentialOption
func WithMultiplier ¶
func WithMultiplier(m float64) ExponentialOption
type RetryLimitError ¶
func (RetryLimitError) Error ¶
func (e RetryLimitError) Error() string
type Strategy ¶
func NewExponentialStrategy ¶
func NewExponentialStrategy(opts ...ExponentialOption) (Strategy, error)
Click to show internal directories.
Click to hide internal directories.