cron

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2022 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	WithLocation = cron.WithLocation
	WithSeconds  = cron.WithSeconds
	WithParser   = cron.WithParser
	WithChain    = cron.WithChain
	WithLogger   = cron.WithLogger

	NewChain            = cron.NewChain
	Recover             = cron.Recover
	DelayIfStillRunning = cron.DelayIfStillRunning
	SkipIfStillRunning  = cron.SkipIfStillRunning
)

Functions

This section is empty.

Types

type Cron

type Cron struct {
	// contains filtered or unexported fields
}

func Default

func Default(locker locker.Locker) *Cron

func New

func New(locker locker.Locker, opts ...Option) *Cron

func (*Cron) Add

func (c *Cron) Add(spec, name string, cmd func())

func (*Cron) Run

func (c *Cron) Run()

func (*Cron) Start

func (c *Cron) Start()

func (*Cron) Stop

func (c *Cron) Stop()

type Option

type Option = cron.Option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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