Documentation ¶
Index ¶
- type Event
- func (receiver *Event) At(time string) schedule.Event
- func (receiver *Event) Cron(expression string) schedule.Event
- func (receiver *Event) Daily() schedule.Event
- func (receiver *Event) DailyAt(time string) schedule.Event
- func (receiver *Event) DelayIfStillRunning() schedule.Event
- func (receiver *Event) EveryFifteenMinutes() schedule.Event
- func (receiver *Event) EveryFiveMinutes() schedule.Event
- func (receiver *Event) EveryFourHours() schedule.Event
- func (receiver *Event) EveryFourMinutes() schedule.Event
- func (receiver *Event) EveryMinute() schedule.Event
- func (receiver *Event) EverySixHours() schedule.Event
- func (receiver *Event) EveryTenMinutes() schedule.Event
- func (receiver *Event) EveryThirtyMinutes() schedule.Event
- func (receiver *Event) EveryThreeHours() schedule.Event
- func (receiver *Event) EveryThreeMinutes() schedule.Event
- func (receiver *Event) EveryTwoHours() schedule.Event
- func (receiver *Event) EveryTwoMinutes() schedule.Event
- func (receiver *Event) GetCallback() func()
- func (receiver *Event) GetCommand() string
- func (receiver *Event) GetCron() string
- func (receiver *Event) GetDelayIfStillRunning() bool
- func (receiver *Event) GetSkipIfStillRunning() bool
- func (receiver *Event) GetTitle() string
- func (receiver *Event) Hourly() schedule.Event
- func (receiver *Event) HourlyAt(offset []string) schedule.Event
- func (receiver *Event) SkipIfStillRunning() schedule.Event
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { Title string Command string Callback func() // contains filtered or unexported fields }
func (*Event) DailyAt ¶
DailyAt Schedule the event to run daily at a given time (10:00, 19:30, etc).
func (*Event) DelayIfStillRunning ¶
DelayIfStillRunning Do not allow the event to overlap each other.
func (*Event) EveryFifteenMinutes ¶
EveryFifteenMinutes Schedule the event to run every fifteen minutes.
func (*Event) EveryFiveMinutes ¶
EveryFiveMinutes Schedule the event to run every five minutes.
func (*Event) EveryFourHours ¶
EveryFourHours Schedule the event to run every four hours.
func (*Event) EveryFourMinutes ¶
EveryFourMinutes Schedule the event to run every four minutes.
func (*Event) EveryMinute ¶
EveryMinute Schedule the event to run every minute.
func (*Event) EverySixHours ¶
EverySixHours Schedule the event to run every six hours.
func (*Event) EveryTenMinutes ¶
EveryTenMinutes Schedule the event to run every ten minutes.
func (*Event) EveryThirtyMinutes ¶
EveryThirtyMinutes Schedule the event to run every thirty minutes.
func (*Event) EveryThreeHours ¶
EveryThreeHours Schedule the event to run every three hours.
func (*Event) EveryThreeMinutes ¶
EveryThreeMinutes Schedule the event to run every three minutes.
func (*Event) EveryTwoHours ¶
EveryTwoHours Schedule the event to run every two hours.
func (*Event) EveryTwoMinutes ¶
EveryTwoMinutes Schedule the event to run every two minutes.
func (*Event) GetCallback ¶
func (receiver *Event) GetCallback() func()
func (*Event) GetCommand ¶
func (*Event) GetDelayIfStillRunning ¶
func (*Event) GetSkipIfStillRunning ¶
func (*Event) SkipIfStillRunning ¶
SkipIfStillRunning Do not allow the event to overlap each other.