Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CronExpr ¶
type CronExpr struct {
// contains filtered or unexported fields
}
CronExpr Field name | Mandatory? | Allowed values | Allowed special characters ---------- | ---------- | -------------- | -------------------------- Seconds | No | 0-59 | * / , - Minutes | Yes | 0-59 | * / , - Hours | Yes | 0-23 | * / , - Day of month | Yes | 1-31 | * / , - Month | Yes | 1-12 | * / , - Day of week | Yes | 0-6 | * / , -
func NewCronExpr ¶
NewCronExpr goroutine safe
type Dispatcher ¶
type Dispatcher struct {
ChanTimer chan *Timer
}
Dispatcher one dispatcher per goroutine (goroutine not safe)
func NewDispatcher ¶
func NewDispatcher(l int) *Dispatcher
func (*Dispatcher) CronFunc ¶
func (d2 *Dispatcher) CronFunc(cronExpr *CronExpr, _cb func()) *Cron
Click to show internal directories.
Click to hide internal directories.