Documentation ¶
Index ¶
- Constants
- func Register(cb callback)
- func RegisteredCronJobs() []callback
- func Wrap(name string, fn func() error, lockerFn func() contracts.Locker) func()
- type Command
- func (c *Command) At(time string) contracts.Command
- func (c *Command) Cron(expression string) contracts.Command
- func (c *Command) Daily() contracts.Command
- func (c *Command) DailyAt(time string) contracts.Command
- func (c *Command) Days(days []int) contracts.Command
- func (c *Command) EveryFifteenMinutes() contracts.Command
- func (c *Command) EveryFifteenSeconds() contracts.Command
- func (c *Command) EveryFiveMinutes() contracts.Command
- func (c *Command) EveryFiveSeconds() contracts.Command
- func (c *Command) EveryFourHours() contracts.Command
- func (c *Command) EveryFourMinutes() contracts.Command
- func (c *Command) EveryFourSeconds() contracts.Command
- func (c *Command) EveryMinute() contracts.Command
- func (c *Command) EverySecond() contracts.Command
- func (c *Command) EverySixHours() contracts.Command
- func (c *Command) EveryTenMinutes() contracts.Command
- func (c *Command) EveryTenSeconds() contracts.Command
- func (c *Command) EveryThirtyMinutes() contracts.Command
- func (c *Command) EveryThirtySeconds() contracts.Command
- func (c *Command) EveryThreeHours() contracts.Command
- func (c *Command) EveryThreeMinutes() contracts.Command
- func (c *Command) EveryThreeSeconds() contracts.Command
- func (c *Command) EveryTwoHours() contracts.Command
- func (c *Command) EveryTwoMinutes() contracts.Command
- func (c *Command) EveryTwoSeconds() contracts.Command
- func (c *Command) Expression() string
- func (c *Command) Fridays() contracts.Command
- func (c *Command) Func() func()
- func (c *Command) Hourly() contracts.Command
- func (c *Command) HourlyAt(minutes []int) contracts.Command
- func (c *Command) LastDayOfMonth(time string) contracts.Command
- func (c *Command) Mondays() contracts.Command
- func (c *Command) Monthly() contracts.Command
- func (c *Command) MonthlyOn(dayOfMonth string, time string) contracts.Command
- func (c *Command) Name() string
- func (c *Command) Quarterly() contracts.Command
- func (c *Command) QuarterlyOn(dayOfQuarter string, time string) contracts.Command
- func (c *Command) Saturdays() contracts.Command
- func (c *Command) Sundays() contracts.Command
- func (c *Command) Thursdays() contracts.Command
- func (c *Command) Tuesdays() contracts.Command
- func (c *Command) Wednesdays() contracts.Command
- func (c *Command) Weekdays() contracts.Command
- func (c *Command) Weekends() contracts.Command
- func (c *Command) Weekly() contracts.Command
- func (c *Command) WeeklyOn(day int, time string) contracts.Command
- func (c *Command) Yearly() contracts.Command
- func (c *Command) YearlyOn(month string, dayOfMonth string, time string) contracts.Command
- type Manager
Constants ¶
View Source
const ( POS_SECOND = iota POS_MINUTE POS_HOUR POS_DAY_OF_MONTH POS_MONTH POS_DAY_OF_WEEK )
View Source
const ( SUNDAY = iota MONDAY TUESDAY WEDNESDAY THURSDAY FRIDAY SATURDAY )
Variables ¶
This section is empty.
Functions ¶
func RegisteredCronJobs ¶
func RegisteredCronJobs() []callback
Types ¶
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
func (*Command) EveryFifteenMinutes ¶
func (*Command) EveryFifteenSeconds ¶
func (*Command) EveryFiveMinutes ¶
func (*Command) EveryFiveSeconds ¶
func (*Command) EveryFourHours ¶
func (*Command) EveryFourMinutes ¶
func (*Command) EveryFourSeconds ¶
func (*Command) EveryMinute ¶
func (*Command) EverySecond ¶
func (*Command) EverySixHours ¶
func (*Command) EveryTenMinutes ¶
func (*Command) EveryTenSeconds ¶
func (*Command) EveryThirtyMinutes ¶
func (*Command) EveryThirtySeconds ¶
func (*Command) EveryThreeHours ¶
func (*Command) EveryThreeMinutes ¶
func (*Command) EveryThreeSeconds ¶
func (*Command) EveryTwoHours ¶
func (*Command) EveryTwoMinutes ¶
func (*Command) EveryTwoSeconds ¶
func (*Command) Expression ¶
func (*Command) QuarterlyOn ¶
func (*Command) Wednesdays ¶
type Manager ¶
func NewManager ¶
func NewManager(runner contracts.CronRunner, app contracts.ApplicationInterface) *Manager
func (*Manager) NewCommand ¶
Click to show internal directories.
Click to hide internal directories.