schedule

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: MIT Imports: 0 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event added in v0.5.0

type Event interface {
	At(time string) Event
	Cron(expression string) Event
	Daily() Event
	DailyAt(time string) Event
	DelayIfStillRunning() Event
	EveryMinute() Event
	EveryTwoMinutes() Event
	EveryThreeMinutes() Event
	EveryFourMinutes() Event
	EveryFiveMinutes() Event
	EveryTenMinutes() Event
	EveryFifteenMinutes() Event
	EveryThirtyMinutes() Event
	EveryTwoHours() Event
	EveryThreeHours() Event
	EveryFourHours() Event
	EverySixHours() Event
	GetCron() string
	GetCommand() string
	GetCallback() func()
	GetName() string
	GetSkipIfStillRunning() bool
	GetDelayIfStillRunning() bool
	Hourly() Event
	HourlyAt(offset []string) Event
	IsOnOneServer() bool
	Name(name string) Event
	OnOneServer() Event
	SkipIfStillRunning() Event
}

type Schedule

type Schedule interface {
	//Call Add a new callback event to the schedule.
	Call(callback func()) Event

	//Command Add a new Artisan command event to the schedule.
	Command(command string) Event

	//Register schedules.
	Register(events []Event)

	//Run schedules.
	Run()
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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