Documentation
¶
Index ¶
- Constants
- func EveryOrRange(expr string, min, max int) ([]int, error)
- func IntVal(expr string, min, max int) ([]int, error)
- func ListInt(expr string) ([]int, error)
- func Parse(cronStr string) (*cron.Cron, error)
- func ParseArg(expr string, min, max int) ([]int, error)
- func ParseDayExpr(expr string) string
- func ParseShortDayExpr(expr string) string
- func ParseShortMonthExpr(expr string) string
Constants ¶
View Source
const ( MinutesMin = 0 MinutesMax = 59 HourMin = 0 HourMax = 23 DayOfMonthMin = 1 DayOfMonthMax = 31 MonthMin = 1 MonthMax = 12 DayOfWeekMin = 0 DayOfWeekMax = 6 MinutePosition = 0 HourPosition = 1 DayOfMonthPosition = 2 MonthPosition = 3 DayOfWeekPosition = 4 CommandPosition = 5 )
Variables ¶
This section is empty.
Functions ¶
func EveryOrRange ¶
EveryOrRange returns a slice of integer and validates if all in correct range
func ParseDayExpr ¶
ParseDayExpr returns a slice of integer converting days to corresponding integers and validates if in correct range
func ParseShortDayExpr ¶
ParseShortDayExpr returns a slice of integer converting first three chars of days to corresponding integers and validates if in correct range
func ParseShortMonthExpr ¶
ParseShortMonthExpr returns a slice of integer converting first three chars of month to corresponding integers and validates if in correct range
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.