Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
Scheduler keeps things rolling. More docs to come...
func NewScheduler ¶
NewScheduler create a Scheduler and returns a pointer to it.
func (*Scheduler) Cancel ¶
Cancel remove a Check from the scheduled queue. If the check is not in the scheduler, this is a noop.
func (*Scheduler) Enter ¶
Enter schedules a `Check`s for execution accordingly to the `Check.Interval()` value. If the interval is 0, the check is supposed to run only once.
func (*Scheduler) IsCheckScheduled ¶
IsCheckScheduled returns whether a check is in the schedule or not
Click to show internal directories.
Click to hide internal directories.