package
Version:
v0.0.0-...-8e17a21
Opens a new window with list of versions in this module.
Published: Jan 7, 2020
License: GPL-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
AddTask adds task to global scheduler
UpdateTask updates task in global scheduler
type Handler interface {
Run(*Task)
}
Handler represents interface of task handler
type Scheduler struct {
}
Scheduler represents wrapper over the cron library
NewScheduler creates a new scheduler
AddTask adds task to cron
Task represents task
Next returns time for next task
ParseCron parsed cron format
String returns description of task
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.