cron

package
v1.16.3 Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FutureTask added in v1.5.4

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

func (*FutureTask) Stop added in v1.5.4

func (f *FutureTask) Stop() context.Context

type Option

type Option struct {
	Expr      string
	Recover   func(next Scheduled) Scheduled
	StackSize int
}

type Options

type Options func(o *Option)

func Daily

func Daily() Options

func Every

func Every(t string) Options

func Expr

func Expr(expr string) Options

func Hourly

func Hourly() Options

func Minutes

func Minutes() Options

func Monthly

func Monthly() Options

func Recover

func Recover() Options

func Seconds

func Seconds() Options

func Weekly

func Weekly() Options

func Yearly

func Yearly() Options

type Schedule

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

func NewSchedule

func NewSchedule(opts ...Options) *Schedule

func (*Schedule) Run

func (s *Schedule) Run(task Scheduled) *FutureTask

type Scheduled

type Scheduled func()

Jump to

Keyboard shortcuts

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