retry

package
v2.13.15 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do(fn RetriableFunc, opts ...Option) error

Types

type OnRetryFunc

type OnRetryFunc func(err error)

type Option

type Option func(*config)

func Delay

func Delay(delay time.Duration) Option

func OnRetry

func OnRetry(fn OnRetryFunc) Option

func Timeout

func Timeout(timeout time.Duration) Option

type RetriableFunc

type RetriableFunc func() error

Jump to

Keyboard shortcuts

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