retry

package
v0.7.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Retrier

type Retrier struct {
	MaxRetries uint
	MaxDelay   time.Duration
	OnRetry    func(n uint, err error, message string)
}

func (*Retrier) RetryFunc

func (r *Retrier) RetryFunc(f retry.RetryableFunc, message string, opts ...retry.Option) error

RetryFunc receives a function to retry, a message that will be passed to the OnRetry hook, and additional github.com/avast/retry-go options

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL