Documentation ¶
Index ¶
- Constants
- type Application
- 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) Hourly() schedule.Event
- func (receiver *Event) HourlyAt(offset []string) schedule.Event
- func (receiver *Event) SkipIfStillRunning() schedule.Event
- type Logger
- type ServiceProvider
Constants ¶
const Binding = "goravel.schedule"
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 NewApplication(artisan console.Artisan, log log.Log) *Application
func (*Application) Call ¶
func (app *Application) Call(callback func()) 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 { Command string Callback func() // contains filtered or unexported fields }
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) EveryFiveMinutes ¶ added in v1.12.0
EveryFiveMinutes Schedule the event to run every five minutes.
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) 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) EveryThirtyMinutes ¶ added in v1.12.0
EveryThirtyMinutes Schedule the event to run every thirty minutes.
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) 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) GetCallback ¶ added in v1.12.0
func (receiver *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) SkipIfStillRunning ¶ added in v1.12.0
SkipIfStillRunning Do not allow the event to overlap each other.
type ServiceProvider ¶
type ServiceProvider struct { }
func (*ServiceProvider) Boot ¶
func (receiver *ServiceProvider) Boot(app foundation.Application)
func (*ServiceProvider) Register ¶
func (receiver *ServiceProvider) Register(app foundation.Application)