Documentation ¶
Index ¶
- type DayOfWeekRepeater
- type IntervalRepeater
- type Repeater
- type Schedule
- func (s *Schedule) CreateSchedule(t ...time.Time)
- func (s Schedule) Len() int
- func (s Schedule) Less(i, j int) bool
- func (s *Schedule) Next() time.Time
- func (s *Schedule) Pop() interface{}
- func (s *Schedule) Push(x interface{})
- func (s *Schedule) SetTime(layout, value, location string) error
- func (s Schedule) Swap(i, j int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DayOfWeekRepeater ¶
DayOfWeekRepeater repeats the schedule NumTimes at the same time of day, but only on specified days of the week. NumTimes does not include the original schedule.
func (*DayOfWeekRepeater) Repeat ¶
func (r *DayOfWeekRepeater) Repeat(s *Schedule) error
Repeat takes a Schedule and alters it to repeat ir.NumTimes times, repeating only on certain weekdays.
type IntervalRepeater ¶
IntervalRepeater repeats the schedule NumTimes with time between repeats of Interval. NumTimes does not include the original schedule.
func (*IntervalRepeater) Repeat ¶
func (ir *IntervalRepeater) Repeat(s *Schedule) error
Repeat takes a Schedule object and alters it to repeat ir.NumTimes times at fixed intervals.
type Repeater ¶
Repeater is an interface whose implementations define how to repeat a schedule. For example: a) Repeating at fixed intervals b) Repeating on certain days of the week
type Schedule ¶
Schedule is the base struct representing a schedule
func NewSchedule ¶
NewSchedule creates a Schedule object It will error if the required fields are improperly filled in.
func (*Schedule) CreateSchedule ¶
CreateSchedule creates a Schedule
func (*Schedule) Pop ¶
func (s *Schedule) Pop() interface{}
Pop is used make Schedule implement the heap interface
func (*Schedule) Push ¶
func (s *Schedule) Push(x interface{})
Push is used make Schedule implement the heap interface