Documentation ¶
Overview ¶
Package cron This provides the Kernel a managed Cron service.
This is simply a wrapper around gopkg.in/robfig/cron.v2
Index ¶
- type CronService
- func (s *CronService) AddFunc(spec string, cmd func()) (crn.EntryID, error)
- func (s *CronService) AddJob(spec string, cmd crn.Job) (crn.EntryID, error)
- func (s *CronService) AddPriorityTask(priority int, spec string, task task.Task) (crn.EntryID, error)
- func (s *CronService) AddTask(spec string, task task.Task) (crn.EntryID, error)
- func (s *CronService) Entries() []crn.Entry
- func (s *CronService) Entry(id crn.EntryID) crn.Entry
- func (s *CronService) PostInit() error
- func (s *CronService) Remove(id crn.EntryID)
- func (s *CronService) Schedule(schedule crn.Schedule, cmd crn.Job) crn.EntryID
- func (s *CronService) Start() error
- func (s *CronService) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CronService ¶
type CronService struct {
// contains filtered or unexported fields
}
CronService gopkg.in/robfig/crn.v2 as a Kernel Service
func (*CronService) AddFunc ¶
func (s *CronService) AddFunc(spec string, cmd func()) (crn.EntryID, error)
func (*CronService) AddPriorityTask ¶ added in v1.2.0
func (*CronService) Entries ¶
func (s *CronService) Entries() []crn.Entry
func (*CronService) PostInit ¶ added in v1.2.0
func (s *CronService) PostInit() error
func (*CronService) Remove ¶
func (s *CronService) Remove(id crn.EntryID)
func (*CronService) Start ¶
func (s *CronService) Start() error
func (*CronService) Stop ¶
func (s *CronService) Stop()
Click to show internal directories.
Click to hide internal directories.