retry

package
v1.172.4 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Try

func Try(fn retry.RetryableFunc, cfg *Config) error

Try the function.

Types

type Config

type Config struct {
	Timeout  string `yaml:"timeout,omitempty" json:"timeout,omitempty" toml:"timeout,omitempty"`
	Attempts uint   `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