scanloop

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultMinInterval and DefaultJitterRange define the shared scan cadence.
	DefaultMinInterval = 13 * time.Second
	DefaultJitterRange = 4 * time.Second
)

Variables

This section is empty.

Functions

func Run

func Run(stopCh <-chan struct{}, minInterval, jitterRange time.Duration, fn func())

Run executes fn at a jittered interval until stopCh is closed. The interval is: minInterval + random([0, jitterRange)).

Types

This section is empty.

Jump to

Keyboard shortcuts

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