retry

package
v1.7.20 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do(ctx context.Context, fn func() error, opts ...Opt) error

Types

type DecayTimer

type DecayTimer struct {
	C chan time.Time
	// contains filtered or unexported fields
}

func NewDecayTimer

func NewDecayTimer(d time.Duration, b float32) *DecayTimer

func (*DecayTimer) Stop

func (t *DecayTimer) Stop()

type Opt

type Opt func(*retrier)

func WithInterval

func WithInterval(b float32) Opt

func WithLogger

func WithLogger(l logger) Opt

Jump to

Keyboard shortcuts

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