Documentation
¶
Index ¶
- func AsNonRetryable(err error) error
- func IsNonRetryable(err error) bool
- func New(opts ...retryOpt) (*retryer, error)
- func Retry(ctx context.Context, fn RetryFn, opts ...retryOpt) error
- func WithCBHook(cb RetryCBHook) retryOpt
- func WithMaxAttempts(maxAttempts int) retryOpt
- func WithSleep(sleep time.Duration) retryOpt
- func WithTimeout(val time.Duration) retryOpt
- type RetryCBHook
- type RetryFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsNonRetryable ¶
func IsNonRetryable ¶
func WithCBHook ¶
func WithCBHook(cb RetryCBHook) retryOpt
func WithMaxAttempts ¶
func WithMaxAttempts(maxAttempts int) retryOpt
func WithTimeout ¶
Types ¶
type RetryCBHook ¶
retry cb is used to expose a callback hook to users, useful for printing output and more.
Click to show internal directories.
Click to hide internal directories.