Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrAlreadyWorker is returned by New calls // when workers name is already exists. ErrAlreadyWorker = errors.New("worker name must be unique") // ErrWrongOptions is returned by New calls // when parameter Options.Schedule is NIL or Options.Handler is NIL. ErrWrongOptions = errors.New("wrong options") )
Functions ¶
Types ¶
type Schedule ¶
Schedule describes a job's duty cycle.
Return the next activation time, later than the given time. Next is invoked initially, and then each time the job is run.
Click to show internal directories.
Click to hide internal directories.