schedule

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

type Field struct {
	Terms  []Term
	Values []int
}

type Kind

type Kind int
const (
	KindStar Kind = iota
	KindSingle
	KindRange
	KindStep
)

type Schedule

type Schedule struct {
	Minute Field
	Hour   Field
	Dom    Field
	Month  Field
	Dow    Field

	Reboot bool
	// contains filtered or unexported fields
}

func Parse

func Parse(expr string) (*Schedule, error)

func (*Schedule) Describe

func (s *Schedule) Describe() string

func (*Schedule) Next

func (s *Schedule) Next(after time.Time) time.Time

type Term

type Term struct {
	Kind             Kind
	Start, End, Step int
}

Jump to

Keyboard shortcuts

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