Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface { Error(...interface{}) Info(...interface{}) Debug(...interface{}) Warn(...interface{}) }
type Scheduler ¶
Scheduler is main type for running jobs
func (*Scheduler) AddJob ¶
AddJob is the wrapper to add a job, updates NextRun field in process. If a scheduler is already running, the job is added with custom function, passed to scheduler goroutine.
func (*Scheduler) RemoveJob ¶
RemoveJob is the wrapper to remove job, returns error if job is not present If a scheduler is already running, the job is removed with custom function, passed to scheduler goroutine.
func (*Scheduler) StartAndServe ¶
func (sr *Scheduler) StartAndServe()
StartAndServe starsts scheduler with preliminary running check
Click to show internal directories.
Click to hide internal directories.