cron

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: Zlib Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFunc

func AddFunc(ctx context.Context, spec string, cmd func()) error

AddFunc adds a func to the cron to be run.

func AddJob

func AddJob(ctx context.Context, spec string, cmd cron.Job) error

AddJob adds a Job to the cron to be run, the job implements a Run() method.

func ListJobs

func ListJobs() map[string]int

ListJobs lists all the jobs and entry ids in the `cmap`.

func RemoveJob

func RemoveJob(ctx context.Context) error

RemoveJob removes a job from the cron.

Types

This section is empty.

Jump to

Keyboard shortcuts

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