Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBadCronSpec = errors.New("bad cron spec")
ErrBadCronSpec is returned when an job spec is not parseable
Functions ¶
This section is empty.
Types ¶
type Cron ¶
type Cron struct {
// contains filtered or unexported fields
}
Cron send an specific 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
type TimeSerie ¶ added in v0.22.0
type TimeSerie struct {
// contains filtered or unexported fields
}
TimeSerie generate time and values in a given time range
func NewTimeSerie ¶ added in v0.22.0
func NewTimeSerie(opts TimeSerieOptions) *TimeSerie
NewTimeSerie create a new TimeSerie generator with given options
Click to show internal directories.
Click to hide internal directories.