Documentation
¶
Index ¶
- func NewConstantBackoff(d time.Duration) retry.BackoffFunc
- func Retry(ctx context.Context, fn func() error, opts ...RetryOption) error
- func RetryRet1[T any](ctx context.Context, fn func() (T, error), opts ...RetryOption) (T, error)
- func WithBackoff(bf retry.BackoffFunc) retry.RetryOption
- func WithPredicate(fn func(error) bool) retry.RetryOption
- type RetryOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConstantBackoff ¶
func NewConstantBackoff(d time.Duration) retry.BackoffFunc
func WithBackoff ¶
func WithBackoff(bf retry.BackoffFunc) retry.RetryOption
func WithPredicate ¶
func WithPredicate(fn func(error) bool) retry.RetryOption
Types ¶
type RetryOption ¶
type RetryOption = retry.RetryOption
Click to show internal directories.
Click to hide internal directories.