Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CronParser = Parser{ newComponentParser("minute", parse.MinuteParser.Parse), newComponentParser("hour", parse.HourParser.Parse), newComponentParser("day of month", parse.DayOfMonthParser.Parse), newComponentParser("month", parse.MonthParser.Parse), newComponentParser("day of week", parse.DayOfWeekParser.Parse), }
CronParser is a type that can parse the components of a cron expression and expand them into the values that they run on
Functions ¶
This section is empty.
Types ¶
type ComponentParser ¶
type ComponentParser struct { Name string Parser PartParser }
ComponentParser is a parser for a specific portion of a cron expression
type Numberer ¶
type Numberer interface {
Numbers() []int
}
Numberer is a type that can give you the expanded cron values
type ParsedComponent ¶
ParsedComponent is the result of parsing a cron component
func (ParsedComponent) String ¶
func (p ParsedComponent) String() string
String implements fmt.Stringer and pretty prints a parsed cron component
type Parser ¶
type Parser []ComponentParser
Parser is a type that can hold multiple ComponentParsers
type PartParser ¶
PartParser is a type that can parse part of a cron expression
Click to show internal directories.
Click to hide internal directories.