Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // TestWg is used for testing the number of check workers TestWg sync.WaitGroup )
Functions ¶
func GetCheckStats ¶
GetCheckStats returns the check stats map
func RemoveCheckStats ¶
RemoveCheckStats removes a check from the check stats map
Types ¶
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
Runner ...
func NewRunner ¶
func NewRunner() *Runner
NewRunner takes the number of desired goroutines processing incoming checks.
func (*Runner) AddWorker ¶
func (r *Runner) AddWorker()
AddWorker adds a new worker to the worker pull
func (*Runner) SetScheduler ¶
SetScheduler sets the scheduler for the runner
func (*Runner) Stop ¶
func (r *Runner) Stop()
Stop closes the pending channel so all workers will exit their loop and terminate All publishers to the pending channel need to have stopped before Stop is called
func (*Runner) StopCheck ¶
StopCheck invokes the `Stop` method on a check if it's running. If the check is not running, this is a noop
func (*Runner) UpdateNumWorkers ¶
UpdateNumWorkers checks if the current number of workers is reasonable, and adds more if needed
Click to show internal directories.
Click to hide internal directories.