Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidRecurringType = errors.New("invalid recurring type") ErrStartDateTimeInPast = errors.New("start_datetime must be greater than or equal to current time") )
Functions ¶
This section is empty.
Types ¶
type Recurring ¶
type Recurring uint
Type can be daily, weekly or monthly.
func (Recurring) MarshalJSON ¶
func (*Recurring) UnmarshalJSON ¶
type Schedule ¶
type Schedule struct {
StartDateTime time.Time `json:"start_datetime,omitempty"` // When the schedule becomes active
Time time.Time `json:"time,omitempty"` // Specific time for the rule to run
Recurring Recurring `json:"recurring,omitempty"` // None, Daily, Weekly, Monthly
RecurringPeriod uint `json:"recurring_period,omitempty"` // Controls how many intervals to skip between executions: 1 = every interval, 2 = every second interval, etc.
}
func (Schedule) MarshalJSON ¶
func (*Schedule) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.