cron

package
v1.15.21 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cron

type Cron interface {
	AddJob(id string, spec string, job func() error) (err error)
	RemoveJob(id string) error
	HasJob(id string) bool
	ClearJobs() error
	AddSecondlyJob(id string, cmd func() error) (err error)
	AddMinutelyJob(id string, cmd func() error) (err error)
	AddHourlyJob(id string, cmd func() error) (err error)
	AddDailyJob(id string, cmd func() error) (err error)
	AddWeeklyJob(id string, cmd func() error) (err error)
	AddMonthlyJob(id string, cmd func() error) (err error)
	AddYearlyJob(id string, cmd func() error) (err error)
}

Cron ...

func New

func New() Cron

New creates a cron.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳