Documentation ¶ Index ¶ Variables type Cron func NewCron() *Cron func (c *Cron) ByCronExpr(expr string, jobFunc interface{}, params ...interface{}) error func (c *Cron) BySeconds(seconds int, jobFunc interface{}, params ...interface{}) error func (c *Cron) Start(ctx context.Context) error func (c *Cron) Stop(ctx context.Context) error Constants ¶ This section is empty. Variables ¶ View Source var ProviderSet = wire.NewSet(NewCron) Functions ¶ This section is empty. Types ¶ type Cron ¶ type Cron struct { // contains filtered or unexported fields } func NewCron ¶ func NewCron() *Cron func (*Cron) ByCronExpr ¶ func (c *Cron) ByCronExpr(expr string, jobFunc interface{}, params ...interface{}) error func (*Cron) BySeconds ¶ func (c *Cron) BySeconds(seconds int, jobFunc interface{}, params ...interface{}) error func (*Cron) Start ¶ func (c *Cron) Start(ctx context.Context) error func (*Cron) Stop ¶ func (c *Cron) Stop(ctx context.Context) error Source Files ¶ View all Source files cron.go Click to show internal directories. Click to hide internal directories.