Documentation
¶
Index ¶
- type CallbackJob
- type Schedule
- type TimedTask
- type Timer
- func (timer Timer) AddDisposableTask(schedule Schedule, job cron.Job, name, description string) int
- func (timer Timer) AddTask(schedule Schedule, job cron.Job, name, description string) int
- func (timer Timer) GetTask(id int) TimedTask
- func (timer Timer) GetTasks() []TimedTask
- func (timer *Timer) Remove(id int)
- func (timer Timer) Run()
- func (timer Timer) Start()
- func (timer Timer) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallbackJob ¶
type CallbackJob struct {
// contains filtered or unexported fields
}
func NewCallbackJob ¶
func NewCallbackJob(job cron.Job) (*CallbackJob, func(callback func()))
func (*CallbackJob) Run ¶
func (j *CallbackJob) Run()
type Schedule ¶
type Schedule struct { DoFirst bool // contains filtered or unexported fields }
func NewSchedule ¶
func NewSchedule(schedule cron.Schedule) Schedule
Click to show internal directories.
Click to hide internal directories.