Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Debug debug switch Debug = false )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Duration ¶
Duration be used toml unmarshal string time, like 1s, 500ms.
func (*Duration) UnmarshalText ¶
UnmarshalText unmarshal text to duration.
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.
Click to show internal directories.
Click to hide internal directories.