Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cron ¶
type Cron struct {
// contains filtered or unexported fields
}
Cron send an specifi message at scheduled intervals
func NewCron ¶
func NewCron(opts CronOptions) *Cron
NewCron create a new Cron Worker with given options
type CronOptions ¶
type CronOptions struct {
//Spec use same format as github.com/robfig/cron/v3
//Second Minute Hour DayOfMonth Month DayOfWeek
Spec string
//Which message will be sent every schedule
Message []byte
}
CronOptions customize cron behaviour
func (CronOptions) Check ¶ added in v0.8.0
func (o CronOptions) Check() error
Check if a combination of options is valid
Click to show internal directories.
Click to hide internal directories.