Documentation ¶
Index ¶
Constants ¶
View Source
const (
Every3Seconds = "@every 3s"
)
Variables ¶
View Source
var ( // ErrRegistered will be returned when watcher is already been registered. ErrRegistered = errors.New("watcher has already been registered") ErrConfigUnavailable = errors.New("configuration is not available") )
Functions ¶
func ListWatchers ¶
ListWatchers returns registered watchers in map format.
Types ¶
type ISpec ¶
type ISpec interface { // Spec return the spec for a cron job. // There are two cron spec formats in common usage: // - standard cron format: https://en.wikipedia.org/wiki/Cron // - quartz scheduler format: http://www.quartz-scheduler.org/documentation/quartz-2.3.0/tutorials/tutorial-lesson-06.html // This method is optional for a watcher. Spec() string }
Spec interface provides methods to set spec for a cron job.
Click to show internal directories.
Click to hide internal directories.