cronx

package
v1.2.12 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SpecManual              = "@manual"    // specification for manual
	SpecMonthly             = "@monthly"   // spec monthly
	SpecWeekly              = "@weekly"    // spec weekly
	SpecHourly              = "@hourly"    // spec hourly
	SpecDaily               = "@daily"     // spec daily
	SpecMidnight            = "@midnight"  // spec at midnight
	SpecEveryMinutes        = "@every 1m"  // spec every 1 minute
	SpecEveryTenMinutes     = "@every 10m" // spec every 10 minutes
	SpecEveryFifteenMinutes = "@every 15m" // spec every 15 minutes
	SpecEveryThirtyMinutes  = "@every 30m" // spec every 30 minutes
	SpecEverySeconds        = "@every 1s"  // spec every 1 second
	SpecEveryTenSeconds     = "@every 10s" // spec every 10 seconds
)

Variables

This section is empty.

Functions

func Add

func Add(name string, spec string, fn func())

Types

This section is empty.

Jump to

Keyboard shortcuts

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