Documentation ¶
Index ¶
Constants ¶
View Source
const CRON = cron.Minute | cron.Hour | cron.Dom | cron.Month | cron.Dow
Variables ¶
View Source
var AllowedFrequencies = []Frequency{Fixed, Daily, Weekly, WeeklyRange, Monthly}
Functions ¶
This section is empty.
Types ¶
type DailyTimeRangeExpressionEvaluator ¶
type DailyTimeRangeExpressionEvaluator struct {
BaseTimeRangeExpressionEvaluator
}
type ErrorMessage ¶
type ErrorMessage string
const ( InvalidFrequencyType ErrorMessage = "invalid Frequency type" HourMinuteNotPresent ErrorMessage = "hourMinuteFrom and hourMinuteTo must be present for Daily frequency" TimeFromOrToNotPresent ErrorMessage = "timeFrom and timeTo must be present for Fixed frequency" TimeFromLessThanTimeTo ErrorMessage = "timeFrom must be less than timeTo for Fixed frequency" TimeFromEqualToTimeTo ErrorMessage = "timeFrom must not be equal to timeTo for Fixed frequency" WeekDayOutsideRange ErrorMessage = "one or both of the values are outside the range of 0 to 6" WeekDaysNotPresent ErrorMessage = "weekdays, must be present for Weekly frequency" WeekDayFromOrToNotPresent ErrorMessage = "weekdayFrom, must be present for WeeklyRange frequency" DayFromOrToNotPresent ErrorMessage = "dayFrom, dayTo, must be present for Monthly frequency" ToBeforeFrom ErrorMessage = "Invalid value of hourMinuteFrom or hourMinuteTo for same day ,hourMinuteFrom >hourMinuteTo" BothLessThanZeroAndFromGreaterThanTo ErrorMessage = "invalid value of DayFrom or DayTo,DayFrom and DayTo is less than zero and dayFrom > dayTo" DayFromOrToNotValid ErrorMessage = "invalid value of dayFrom or dayTo" )
type MonthlyTimeRangeExpressionEvaluator ¶
type MonthlyTimeRangeExpressionEvaluator struct {
BaseTimeRangeExpressionEvaluator
}
type TimeRange ¶
type TimeRange struct { TimeFrom time.Time TimeTo time.Time HourMinuteFrom string HourMinuteTo string DayFrom int DayTo int WeekdayFrom time.Weekday WeekdayTo time.Weekday Weekdays []time.Weekday Frequency Frequency }
func (TimeRange) GetTimeRangeWindow ¶
func (TimeRange) ValidateTimeRange ¶
type WeeklyRangeTimeRangeExpressionEvaluator ¶
type WeeklyRangeTimeRangeExpressionEvaluator struct {
BaseTimeRangeExpressionEvaluator
}
type WeeklyTimeRangeExpressionEvaluator ¶
type WeeklyTimeRangeExpressionEvaluator struct {
BaseTimeRangeExpressionEvaluator
}
Click to show internal directories.
Click to hide internal directories.