Documentation
      ¶
    
    
  
    
  
    Overview ¶
Package schedule provides a fixed ticker based on a start time iso8601 interval periods are supported
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ticker ¶
type Ticker struct {
	*TickerSchedule
	// contains filtered or unexported fields
}
    Ticker provides an easy way to execute a job at given times (like a cron job).
func NewTicker ¶
func NewTicker(schedule *TickerSchedule, onTick OnTick) *Ticker
NewTicker creates a new waiter that sends start events for this job on the given schedule
type TickerSchedule ¶
type TickerSchedule struct {
	// contains filtered or unexported fields
}
    TickerSchedule contains all info about the scheduling (start, repeat, interval)
func NewTickerSchedule ¶
NewTickerSchedule creates a schedule from parameters
func NewTickerScheduleFromISO ¶
func NewTickerScheduleFromISO(is8601 string) (*TickerSchedule, error)
NewTickerScheduleFromISO creates a schedule from an iso8601 string. It can return an error if the string is not properly formatted or empty.
func (*TickerSchedule) ParseIsoSchedule ¶
func (s *TickerSchedule) ParseIsoSchedule() error
ParseSchedule parses the given Iso 8601 string and stores corresponding values.
      
      Source Files
      ¶
    
- ticker.go
 
 Click to show internal directories. 
   Click to hide internal directories.