Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunSchedule ¶
Types ¶
type Job ¶
type Job struct { ID string OnTrigger TriggerCallback IntervalMinutes int NextTime Time }
type Schedule ¶
type Schedule struct {
// contains filtered or unexported fields
}
func NewSchedule ¶
func NewSchedule() *Schedule
func (*Schedule) AddHourlyJob ¶
func (s *Schedule) AddHourlyJob(id string, minute int, onTrigger TriggerCallback)
func (*Schedule) AddIntervalJob ¶
func (s *Schedule) AddIntervalJob(id string, intervalMinutes int, offset int, onTrigger TriggerCallback)
func (*Schedule) Reschedule ¶
type TriggerCallback ¶
TriggerCallback receives the job ID, and the time when the job was triggered.
Click to show internal directories.
Click to hide internal directories.