Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Timer ¶
type Timer interface { AddTaskByFunc(taskName string, spec string, task func()) (cron.EntryID, error) AddTaskByJob(taskName string, spec string, job interface{ Run() }) (cron.EntryID, error) FindCron(taskName string) (*cron.Cron, bool) StartTask(taskName string) StopTask(taskName string) Remove(taskName string, id int) Clear(taskName string) Close() }
Click to show internal directories.
Click to hide internal directories.