Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrShouldBackoff = errors.New("should back off")
Functions ¶
Types ¶
type Config ¶
type Config struct { Name string NoWorkBackOff backoff.BackOff MaxWorkTime time.Duration // WorkFunc should return ErrShouldBackoff if it wants to back off, or set BackoffOnAllErrors WorkFunc func(ctx context.Context) error // If backoff is desired for any returned error BackoffOnAllErrors bool // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.