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 ¶
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.