Documentation ¶
Index ¶
- func ReleaseCron(cron *Cron)
- func ReleaseTicker(ticker *Ticker)
- func ReleaseTimer(timer *Timer)
- type Cron
- type CronExpr
- type Dispatcher
- func (disp *Dispatcher) AfterFunc(d time.Duration, cb func(), onCloseTimer func(timer *timewheel.Timer), ...) *Timer
- func (disp *Dispatcher) CronFunc(cronExpr *CronExpr, cb func(), onCloseTimer func(timer *timewheel.Timer), ...) *Cron
- func (disp *Dispatcher) TickerFunc(d time.Duration, cb func(), onCloseTimer func(timer *timewheel.Timer), ...) *Ticker
- type ITime
- type Ticker
- type Timer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReleaseCron ¶
func ReleaseCron(cron *Cron)
func ReleaseTicker ¶
func ReleaseTicker(ticker *Ticker)
func ReleaseTimer ¶
func ReleaseTimer(timer *Timer)
Types ¶
type CronExpr ¶
type CronExpr struct {
// contains filtered or unexported fields
}
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 | * / , -
type Dispatcher ¶
one dispatcher per goroutine (goroutine not safe)
func NewDispatcher ¶
func NewDispatcher(l int) *Dispatcher
func (*Dispatcher) TickerFunc ¶
Click to show internal directories.
Click to hide internal directories.