cron

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2025 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Del

func Del(name string)

DelCron removes a named cron job

func Has

func Has(name string) bool

HasCron checks if a named cron job exists

func New

func New(interval time.Duration, cb func() bool) error

NewCron adds a new, unnamed cron job to the queue

minimum interval: 1 minute

in the callback, return true to keep the job running, and return false to end the job

func Set

func Set(name string, interval time.Duration, cb func() bool)

SetCron adds or overwrites a named cron job

Types

This section is empty.

Jump to

Keyboard shortcuts

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