support

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Command  string
	Callback func()
	// contains filtered or unexported fields
}

func (*Event) At

func (receiver *Event) At(time string) schedule.Event

At Schedule the command at a given time.

func (*Event) Cron

func (receiver *Event) Cron(expression string) schedule.Event

Cron The Cron expression representing the event's frequency.

func (*Event) Daily

func (receiver *Event) Daily() schedule.Event

Daily Schedule the event to run daily.

func (*Event) DailyAt

func (receiver *Event) DailyAt(time string) schedule.Event

DailyAt Schedule the event to run daily at a given time (10:00, 19:30, etc).

func (*Event) DelayIfStillRunning

func (receiver *Event) DelayIfStillRunning() schedule.Event

DelayIfStillRunning Do not allow the event to overlap each other.

func (*Event) EveryFifteenMinutes

func (receiver *Event) EveryFifteenMinutes() schedule.Event

EveryFifteenMinutes Schedule the event to run every fifteen minutes.

func (*Event) EveryFiveMinutes

func (receiver *Event) EveryFiveMinutes() schedule.Event

EveryFiveMinutes Schedule the event to run every five minutes.

func (*Event) EveryFourHours

func (receiver *Event) EveryFourHours() schedule.Event

EveryFourHours Schedule the event to run every four hours.

func (*Event) EveryFourMinutes

func (receiver *Event) EveryFourMinutes() schedule.Event

EveryFourMinutes Schedule the event to run every four minutes.

func (*Event) EveryMinute

func (receiver *Event) EveryMinute() schedule.Event

EveryMinute Schedule the event to run every minute.

func (*Event) EverySixHours

func (receiver *Event) EverySixHours() schedule.Event

EverySixHours Schedule the event to run every six hours.

func (*Event) EveryTenMinutes

func (receiver *Event) EveryTenMinutes() schedule.Event

EveryTenMinutes Schedule the event to run every ten minutes.

func (*Event) EveryThirtyMinutes

func (receiver *Event) EveryThirtyMinutes() schedule.Event

EveryThirtyMinutes Schedule the event to run every thirty minutes.

func (*Event) EveryThreeHours

func (receiver *Event) EveryThreeHours() schedule.Event

EveryThreeHours Schedule the event to run every three hours.

func (*Event) EveryThreeMinutes

func (receiver *Event) EveryThreeMinutes() schedule.Event

EveryThreeMinutes Schedule the event to run every three minutes.

func (*Event) EveryTwoHours

func (receiver *Event) EveryTwoHours() schedule.Event

EveryTwoHours Schedule the event to run every two hours.

func (*Event) EveryTwoMinutes

func (receiver *Event) EveryTwoMinutes() schedule.Event

EveryTwoMinutes Schedule the event to run every two minutes.

func (*Event) GetCallback added in v0.5.0

func (receiver *Event) GetCallback() func()

func (*Event) GetCommand added in v0.5.0

func (receiver *Event) GetCommand() string

func (*Event) GetCron

func (receiver *Event) GetCron() string

func (*Event) GetDelayIfStillRunning

func (receiver *Event) GetDelayIfStillRunning() bool

func (*Event) GetSkipIfStillRunning

func (receiver *Event) GetSkipIfStillRunning() bool

func (*Event) Hourly

func (receiver *Event) Hourly() schedule.Event

Hourly Schedule the event to run hourly.

func (*Event) HourlyAt

func (receiver *Event) HourlyAt(offset []string) schedule.Event

HourlyAt Schedule the event to run hourly at a given offset in the hour.

func (*Event) SkipIfStillRunning

func (receiver *Event) SkipIfStillRunning() schedule.Event

SkipIfStillRunning Do not allow the event to overlap each other.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL