Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Debug debug switch Debug = false )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Timer ¶
type Timer struct {
// contains filtered or unexported fields
}
Timer timer.
func NewTimer ¶
NewTimer new a timer. A heap must be initialized before any of the heap operations can be used. Init is idempotent with respect to the heap invariants and may be called whenever the heap invariants may have been invalidated. Its complexity is O(n) where n = h.Len().
func (*Timer) Add ¶
Add add the element x onto the heap. The complexity is O(log(n)) where n = h.Len().
type TimerData ¶
type TimerData struct { Key string // contains filtered or unexported fields }
TimerData timer data.
func (*TimerData) ExpireString ¶
ExpireString expire string.
type TimingWheel ¶
type TimingWheel struct {
// contains filtered or unexported fields
}
func NewTimingWheel ¶
func NewTimingWheel(size int) *TimingWheel
func (*TimingWheel) Start ¶
func (t *TimingWheel) Start()
func (*TimingWheel) Stop ¶
func (t *TimingWheel) Stop()
Click to show internal directories.
Click to hide internal directories.