Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CronManager ¶
type CronManager struct {
// contains filtered or unexported fields
}
func NewCronManager ¶
func NewCronManager() *CronManager
func (*CronManager) AddWorker ¶
func (mag *CronManager) AddWorker(w CronWorker)
func (*CronManager) Cron ¶
func (mag *CronManager) Cron() *cron.Cron
func (*CronManager) Start ¶
func (mag *CronManager) Start()
func (*CronManager) Stop ¶
func (mag *CronManager) Stop()
type CronWorker ¶
type CronWorker interface {
Cron() string
Run()
}
func NewCronWorker ¶
func NewCronWorker(cron string, f func()) CronWorker
Click to show internal directories.
Click to hide internal directories.