Documentation ¶
Index ¶
- type Crontab
- func (c *Crontab) AddByFunc(id string, spec string, f func()) error
- func (c *Crontab) AddByID(id string, spec string, cmd cron.Job) error
- func (c *Crontab) DelByID(id string)
- func (c *Crontab) IDs() []string
- func (c *Crontab) IsExists(jid string) bool
- func (c *Crontab) Start()
- func (c *Crontab) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Crontab ¶
type Crontab struct {
// contains filtered or unexported fields
}
Crontab crontab manager
Click to show internal directories.
Click to hide internal directories.