Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultMaxAttempts = 10 DefaultDelay = time.Millisecond * 100 )
Variables ¶
View Source
var (
DefaultDoRetry = func(attempt int, err error) (time.Duration, bool) { return DefaultDelay, true }
)
Functions ¶
Types ¶
type Option ¶
type Option func(retryable *funcRetryable)
func WithDoRetry ¶
func WithDoRetryWithDelay ¶
func WithMaxAttempts ¶
type RetryableAttempts ¶
type RetryableDoRetry ¶
Click to show internal directories.
Click to hide internal directories.