retry

package
v1.364.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2025 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Try

func Try(ctx context.Context, fn retry.RetryFunc, cfg *Config) error

Try the function.

Types

type Config

type Config struct {
	Timeout  string `yaml:"timeout,omitempty" json:"timeout,omitempty" toml:"timeout,omitempty"`
	Backoff  string `yaml:"backoff,omitempty" json:"backoff,omitempty" toml:"backoff,omitempty"`
	Attempts uint64 `yaml:"attempts,omitempty" json:"attempts,omitempty" toml:"attempts,omitempty"`
}

Config for retry.

Jump to

Keyboard shortcuts

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