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
Click to show internal directories.
Click to hide internal directories.