Documentation
¶
Overview ¶
Package scheduler runs probe cycles on an interval through a bounded worker pool.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checker ¶
Checker probes a single target. *probe.Prober is the production implementation; tests substitute a fake to drive scheduling without real network I/O.
type ResultHandler ¶
ResultHandler consumes each probe result (alerting, metrics, logging).
type Scheduler ¶
type Scheduler struct {
// OnCycle, when non-nil, is called at the end of each completed cycle with
// its completion time and wall duration, so the cycle gauges can be exported.
OnCycle func(completedAt time.Time, d time.Duration)
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.