Documentation
¶
Index ¶
- type Info
- type Schedule
- func (c *Schedule) AddFunc(spec string, cmd func(context2 *core.Context)) (cron.EntryID, error)
- func (c *Schedule) AddIdOrReplaceKeyFunc(id uint, key string, spec string, cmd func(context2 *core.Context)) (cron.EntryID, bool, error)
- func (c *Schedule) AddKeyFunc(key string, spec string, cmd func(context2 *core.Context)) (cron.EntryID, bool, error)
- func (c *Schedule) Init(ctx *core.Context) error
- func (c *Schedule) ReplaceKeyFunc(key string, spec string, cmd func(context2 *core.Context)) (cron.EntryID, error)
- func (c *Schedule) Run(context context.Context) error
- func (c *Schedule) StopIdFunc(id uint)
- func (c *Schedule) StopKeyFunc(key string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Schedule ¶
type Schedule struct {
// contains filtered or unexported fields
}
func NewSchedule ¶
func NewScheduleWithSeconds ¶
func NewScheduleWithSeconds() *Schedule
func (*Schedule) AddIdOrReplaceKeyFunc ¶
func (*Schedule) AddKeyFunc ¶
func (*Schedule) ReplaceKeyFunc ¶
func (*Schedule) StopIdFunc ¶
func (*Schedule) StopKeyFunc ¶
Click to show internal directories.
Click to hide internal directories.