cron

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EmptyOptions []Option

	Recover             = cron.Recover(newLog())
	SkipIfStillRunning  = cron.SkipIfStillRunning(newLog())
	DelayIfStillRunning = cron.DelayIfStillRunning(newLog())
)

Functions

func AddJobs

func AddJobs(jos ...Job)

func Init

func Init() error

func Stop

func Stop()

Types

type Job

type Job interface {
	Name() string
	Spec() string
	Options() []Option
	Run()
}

type JobWrapper

type JobWrapper = cron.JobWrapper

type Option

type Option func(*Options)

func SingleNode

func SingleNode() Option

func Wrappers added in v0.2.6

func Wrappers(wrappers ...JobWrapper) Option

type Options

type Options struct {
	Wrappers   []JobWrapper
	SingleNode bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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