retry

package
v3.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Retry

type Retry struct {
	Interval    time.Duration
	Multiplier  float64
	MaxInterval time.Duration
	StopAfter   time.Duration
}

func (*Retry) NextRun

func (r *Retry) NextRun(sched, now time.Time) time.Time

NextRun returns the time when the jobs must be retried again.

Jump to

Keyboard shortcuts

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