schedule

package
v2.2.5 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Yearly    = "@yearly"
	Annually  = "@annually"
	Monthly   = "@monthly"
	Weekly    = "@weekly"
	Daily     = "@daily"
	Midnight  = "@midnight"
	Hourly    = "@hourly"
	Minute    = "@minute"
	Every     = "@every"
	Weekday   = "@weekday"
	Monday    = "1"
	Tuesday   = "2"
	Wednesday = "3"
	Thursday  = "4"
	Friday    = "5"
	Saturday  = "6"
	Sunday    = "0"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Cron

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

func NewCronScheduler

func NewCronScheduler(ctx context.Context) (*Cron, error)

func (*Cron) AddFunc

func (c *Cron) AddFunc(spec string, cmd func()) (int, error)

Directories

Path Synopsis
Package cron implements a cron spec parser and job runner.
Package cron implements a cron spec parser and job runner.

Jump to

Keyboard shortcuts

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