interval

package
v2.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Calculator

type Calculator interface {
	NextInterval(req ctrl.Request, result ctrl.Result, err error) (ctrl.Result, error)
}

Calculator calculates an interval

func NewCalculator

func NewCalculator(params CalculatorParameters) Calculator

NewCalculator creates a new Calculator.

type CalculatorParameters

type CalculatorParameters struct {
	Rand                 *rand.Rand
	ErrorBaseDelay       time.Duration
	ErrorMaxFastDelay    time.Duration
	ErrorMaxSlowDelay    time.Duration
	SyncPeriod           *time.Duration
	RequeueDelayOverride time.Duration
}

Jump to

Keyboard shortcuts

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