Documentation ¶ Index ¶ Variables type CronJob func New(redisClient *redis.Client, name string, timeout time.Duration) *CronJob func (c *CronJob) AddFunc(ctx context.Context, spec string, cmd func()) error func (c *CronJob) Renewal(ctx context.Context) func (c *CronJob) Start() func (c *CronJob) Stop() Constants ¶ This section is empty. Variables ¶ View Source var KeyPrefix = "cronjob:%s" Functions ¶ This section is empty. Types ¶ type CronJob ¶ type CronJob struct { // contains filtered or unexported fields } func New ¶ func New(redisClient *redis.Client, name string, timeout time.Duration) *CronJob func (*CronJob) AddFunc ¶ func (c *CronJob) AddFunc(ctx context.Context, spec string, cmd func()) error func (*CronJob) Renewal ¶ func (c *CronJob) Renewal(ctx context.Context) func (*CronJob) Start ¶ func (c *CronJob) Start() func (*CronJob) Stop ¶ func (c *CronJob) Stop() Source Files ¶ View all Source files cronjob.go Click to show internal directories. Click to hide internal directories.