Documentation
¶
Overview ¶
Package cron provides a cron scheduling interface and its production implementation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CronRunnable ¶ added in v1.0.1
type CronRunnable struct {
// contains filtered or unexported fields
}
CronRunnable adapts a Scheduler to the manager.Runnable interface. It blocks until the context is cancelled, then stops the scheduler.
func NewCronRunnable ¶ added in v1.0.1
func NewCronRunnable(s Scheduler) *CronRunnable
NewCronRunnable creates a Runnable that stops the scheduler when the manager shuts down.
type RealScheduler ¶
RealScheduler wraps robfig/cron for production use.
func NewRealScheduler ¶
func NewRealScheduler() *RealScheduler
NewRealScheduler creates a production cron scheduler.