package
18.0.0-dev.vnet-windows.4+incompatible
Repository: https://github.com/gravitational/teleport.git
Documentation: pkg.go.dev
# Functions
New creates a new interval instance.
NewMulti creates a new multi-interval instance.
NewNoop creates a new interval that will never fire.
NewVariableDuration sets up a new variable duration instance.
# Structs
Config configures an interval.
Interval functions similarly to time.Ticker, with the added benefit of being able to specify a custom duration for the first "tick", and an optional per-tick jitter.
MultiInterval is equivalent to Interval except that it supports multiple intervals simultanesouly, distinguishing them by key.
SubInterval configures an interval.
Tick represents a firing of the interval.
VariableDuration is a duration generator that varies its output based on a counter.
VariableDurationConfig holds input parameters for a variable duration.