Documentation
¶
Index ¶
- type Application
- func (app *Application) Call(callback func()) schedule.Event
- func (app *Application) Command(command string) schedule.Event
- func (app *Application) Events() []schedule.Event
- func (app *Application) Register(events []schedule.Event)
- func (app *Application) Run()
- func (app *Application) Shutdown(ctx ...context.Context) error
- type Event
- func (r *Event) At(time string) schedule.Event
- func (r *Event) Cron(expression string) schedule.Event
- func (r *Event) Daily() schedule.Event
- func (r *Event) DailyAt(time string) schedule.Event
- func (r *Event) Days(days ...time.Weekday) schedule.Event
- func (r *Event) DelayIfStillRunning() schedule.Event
- func (r *Event) EveryFifteenMinutes() schedule.Event
- func (r *Event) EveryFifteenSeconds() schedule.Event
- func (r *Event) EveryFiveMinutes() schedule.Event
- func (r *Event) EveryFiveSeconds() schedule.Event
- func (r *Event) EveryFourHours() schedule.Event
- func (r *Event) EveryFourMinutes() schedule.Event
- func (r *Event) EveryMinute() schedule.Event
- func (r *Event) EverySecond() schedule.Event
- func (r *Event) EverySixHours() schedule.Event
- func (r *Event) EveryTenMinutes() schedule.Event
- func (r *Event) EveryTenSeconds() schedule.Event
- func (r *Event) EveryThirtyMinutes() schedule.Event
- func (r *Event) EveryThirtySeconds() schedule.Event
- func (r *Event) EveryThreeHours() schedule.Event
- func (r *Event) EveryThreeMinutes() schedule.Event
- func (r *Event) EveryTwentySeconds() schedule.Event
- func (r *Event) EveryTwoHours() schedule.Event
- func (r *Event) EveryTwoMinutes() schedule.Event
- func (r *Event) EveryTwoSeconds() schedule.Event
- func (r *Event) Fridays() schedule.Event
- func (r *Event) GetCallback() func()
- func (r *Event) GetCommand() string
- func (r *Event) GetCron() string
- func (r *Event) GetDelayIfStillRunning() bool
- func (r *Event) GetName() string
- func (r *Event) GetSkipIfStillRunning() bool
- func (r *Event) Hourly() schedule.Event
- func (r *Event) HourlyAt(offset []string) schedule.Event
- func (r *Event) IsOnOneServer() bool
- func (r *Event) Mondays() schedule.Event
- func (r *Event) Monthly() schedule.Event
- func (r *Event) Name(name string) schedule.Event
- func (r *Event) OnOneServer() schedule.Event
- func (r *Event) Quarterly() schedule.Event
- func (r *Event) Saturdays() schedule.Event
- func (r *Event) SkipIfStillRunning() schedule.Event
- func (r *Event) Sundays() schedule.Event
- func (r *Event) Thursdays() schedule.Event
- func (r *Event) Tuesdays() schedule.Event
- func (r *Event) TwiceDaily(hours ...int) schedule.Event
- func (r *Event) Wednesdays() schedule.Event
- func (r *Event) Weekdays() schedule.Event
- func (r *Event) Weekends() schedule.Event
- func (r *Event) Weekly() schedule.Event
- func (r *Event) Yearly() schedule.Event
- type Logger
- type ServiceProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct {
// contains filtered or unexported fields
}
func NewApplication ¶ added in v1.8.0
func (*Application) Call ¶
func (app *Application) Call(callback func()) schedule.Event
func (*Application) Events ¶ added in v1.15.12
func (app *Application) Events() []schedule.Event
func (*Application) Register ¶
func (app *Application) Register(events []schedule.Event)
func (*Application) Run ¶
func (app *Application) Run()
type Event ¶ added in v1.12.0
type Event struct {
// contains filtered or unexported fields
}
func NewCallbackEvent ¶ added in v1.13.0
func NewCallbackEvent(callback func()) *Event
func NewCommandEvent ¶ added in v1.13.0
func (*Event) DailyAt ¶ added in v1.12.0
DailyAt schedule the event to run daily at a given time (10:00, 19:30, etc).
func (*Event) DelayIfStillRunning ¶ added in v1.12.0
DelayIfStillRunning do not allow the event to overlap each other.
func (*Event) EveryFifteenMinutes ¶ added in v1.12.0
EveryFifteenMinutes schedule the event to run every fifteen minutes.
func (*Event) EveryFifteenSeconds ¶ added in v1.15.12
EveryFifteenSeconds schedule the event to run every fifteen seconds.
func (*Event) EveryFiveMinutes ¶ added in v1.12.0
EveryFiveMinutes schedule the event to run every five minutes.
func (*Event) EveryFiveSeconds ¶ added in v1.15.12
EveryFiveSeconds schedule the event to run every five seconds.
func (*Event) EveryFourHours ¶ added in v1.12.0
EveryFourHours schedule the event to run every four hours.
func (*Event) EveryFourMinutes ¶ added in v1.12.0
EveryFourMinutes schedule the event to run every four minutes.
func (*Event) EveryMinute ¶ added in v1.12.0
EveryMinute schedule the event to run every minute.
func (*Event) EverySecond ¶ added in v1.15.12
EverySecond schedule the event to run every second.
func (*Event) EverySixHours ¶ added in v1.12.0
EverySixHours schedule the event to run every six hours.
func (*Event) EveryTenMinutes ¶ added in v1.12.0
EveryTenMinutes schedule the event to run every ten minutes.
func (*Event) EveryTenSeconds ¶ added in v1.15.12
EveryTenSeconds schedule the event to run every ten seconds.
func (*Event) EveryThirtyMinutes ¶ added in v1.12.0
EveryThirtyMinutes schedule the event to run every thirty minutes.
func (*Event) EveryThirtySeconds ¶ added in v1.15.12
EveryThirtySeconds schedule the event to run every thirty seconds.
func (*Event) EveryThreeHours ¶ added in v1.12.0
EveryThreeHours schedule the event to run every three hours.
func (*Event) EveryThreeMinutes ¶ added in v1.12.0
EveryThreeMinutes schedule the event to run every three minutes.
func (*Event) EveryTwentySeconds ¶ added in v1.15.12
EveryTwentySeconds schedule the event to run every twenty seconds.
func (*Event) EveryTwoHours ¶ added in v1.12.0
EveryTwoHours schedule the event to run every two hours.
func (*Event) EveryTwoMinutes ¶ added in v1.12.0
EveryTwoMinutes schedule the event to run every two minutes.
func (*Event) EveryTwoSeconds ¶ added in v1.15.12
EveryTwoSeconds schedule the event to run every two seconds.
func (*Event) GetCallback ¶ added in v1.12.0
func (r *Event) GetCallback() func()
func (*Event) GetCommand ¶ added in v1.12.0
func (*Event) GetDelayIfStillRunning ¶ added in v1.12.0
func (*Event) GetSkipIfStillRunning ¶ added in v1.12.0
func (*Event) HourlyAt ¶ added in v1.12.0
HourlyAt schedule the event to run hourly at a given offset in the hour.
func (*Event) IsOnOneServer ¶ added in v1.13.0
func (*Event) OnOneServer ¶ added in v1.13.0
func (*Event) SkipIfStillRunning ¶ added in v1.12.0
SkipIfStillRunning do not allow the event to overlap each other.
func (*Event) TwiceDaily ¶ added in v1.15.12
TwiceDaily schedule the event to run twice a day,default at 1:00 and 13:00.
func (*Event) Wednesdays ¶ added in v1.15.12
Wednesdays schedule the event to run on Wednesdays.
func (*Event) Weekdays ¶ added in v1.15.12
Weekdays schedule the event to run on weekdays (Monday to Friday).
func (*Event) Weekends ¶ added in v1.15.12
Weekends schedule the event to run on weekends (Saturday and Sunday).
type ServiceProvider ¶
type ServiceProvider struct {
}
func (*ServiceProvider) Boot ¶
func (r *ServiceProvider) Boot(app foundation.Application)
func (*ServiceProvider) Register ¶
func (r *ServiceProvider) Register(app foundation.Application)
func (*ServiceProvider) Relationship ¶ added in v1.15.12
func (r *ServiceProvider) Relationship() binding.Relationship