Documentation ¶
Index ¶
- func Do(userFn UserFunc, opts ...retryOption) error
- func WithAttempts(attempts uint) retryOption
- func WithContext(ctx context.Context) retryOption
- func WithDelayFn(delayTypeFn DelayTypeFunc) retryOption
- func WithIf(retryIf IfFunc) retryOption
- func WithOnRetry(onRetry OnRetryFunc) retryOption
- type Config
- type DelayTypeFunc
- type Error
- type IfFunc
- type OnRetryFunc
- type UserFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithAttempts ¶
func WithAttempts(attempts uint) retryOption
func WithContext ¶
func WithDelayFn ¶ added in v0.0.21
func WithDelayFn(delayTypeFn DelayTypeFunc) retryOption
func WithOnRetry ¶
func WithOnRetry(onRetry OnRetryFunc) retryOption
Types ¶
type DelayTypeFunc ¶ added in v0.0.21
type OnRetryFunc ¶
Click to show internal directories.
Click to hide internal directories.