Versions in this module Expand all Collapse all v0 v0.2.0 Jun 3, 2024 v0.1.0 May 24, 2024 Changes in this version + const DefaultTimeout + func ResetTimeout(t *time.Timer, d time.Duration) + func Retryable(err error) bool + func WithBackoff(ctx context.Context, retryableFunc RetryableFunc, retryable IsRetryable, ...) (err error) + type IsRetryable func(error) bool + type OnRetryableErrorFunc func(elapsed time.Duration, attempt uint64, err, lastErr error) + type OnSuccessFunc func(elapsed time.Duration, attempt uint64, lastErr error) + type RetryableFunc func(context.Context) error + type Settings struct + OnRetryableError OnRetryableErrorFunc + OnSuccess OnSuccessFunc + Timeout time.Duration