schedule

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	UpdateTime time.Time
	Key        string
	// contains filtered or unexported fields
}

type Schedule

type Schedule struct {
	// contains filtered or unexported fields
}

func NewSchedule

func NewSchedule(opts ...cron.Option) *Schedule

func NewScheduleWithSeconds

func NewScheduleWithSeconds() *Schedule

func (*Schedule) AddFunc

func (c *Schedule) AddFunc(spec string, cmd func(context2 *core.Context)) (cron.EntryID, error)

func (*Schedule) AddIdOrReplaceKeyFunc

func (c *Schedule) AddIdOrReplaceKeyFunc(id uint, key string, spec string, cmd func(context2 *core.Context)) (cron.EntryID, bool, error)

func (*Schedule) AddKeyFunc

func (c *Schedule) AddKeyFunc(key string, spec string, cmd func(context2 *core.Context)) (cron.EntryID, bool, error)

func (*Schedule) Init

func (c *Schedule) Init(ctx *core.Context) error

func (*Schedule) ReplaceKeyFunc

func (c *Schedule) ReplaceKeyFunc(key string, spec string, cmd func(context2 *core.Context)) (cron.EntryID, error)

func (*Schedule) Run

func (c *Schedule) Run(context context.Context) error

func (*Schedule) StopIdFunc

func (c *Schedule) StopIdFunc(id uint)

func (*Schedule) StopKeyFunc

func (c *Schedule) StopKeyFunc(key string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL