crontab

package
v0.0.0-...-806cc7c Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultCronManger = NewCronTabManger("DefaultCronManger")

Functions

func AddCronJob

func AddCronJob(spec string, job cron.Job) (cron.EntryID, error)

func Close

func Close()

func GetCron

func GetCron() *cron.Cron

func RemoveCronJob

func RemoveCronJob(id cron.EntryID)

func Start

func Start()

Types

type CronManger

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

func NewCronTabManger

func NewCronTabManger(name string) *CronManger

func (*CronManger) AddCronJob

func (c *CronManger) AddCronJob(spec string, job cron.Job) (cron.EntryID, error)

func (*CronManger) Close

func (c *CronManger) Close()

func (*CronManger) GetCron

func (c *CronManger) GetCron() *cron.Cron

func (*CronManger) RemoveCronJob

func (c *CronManger) RemoveCronJob(id cron.EntryID)

func (*CronManger) Start

func (c *CronManger) Start()

Jump to

Keyboard shortcuts

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