retry

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sleep

func Sleep(cfg Config, attempt int)

Types

type Config

type Config struct {
	MaxAttempts  int
	InitialDelay int
	Strategy     int
}

func Attempts

func Attempts(cfg Config, maxAttempts int) Config

func Delay

func Delay(cfg Config, delayMs int) Config

func Linear added in v0.0.6

func Linear(cfg Config) Config

func New

func New() Config

Jump to

Keyboard shortcuts

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