cron

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidCronExpression = errors.New("invalid cron expression")

Functions

func CalculateNextRun

func CalculateNextRun(schedule Schedule, from time.Time, timezone string) time.Time

func ValidateCronExpression

func ValidateCronExpression(expr string) error

Types

type Schedule

type Schedule interface {
	Next(t time.Time) time.Time
}

Schedule represents a parsed cron schedule that can compute the next run time.

func ParseCronExpression

func ParseCronExpression(expr string) (Schedule, error)

Jump to

Keyboard shortcuts

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