Documentation ¶
Index ¶
- func Stop()
- type Head
- func (h *Head) Add(new *Head)
- func (h *Head) AddTail(new *Head)
- func (h *Head) Del(head *Head)
- func (h *Head) DelInit(pos *Head)
- func (h *Head) Empty() bool
- func (pos *Head) Entry(offset uintptr) unsafe.Pointer
- func (h *Head) FirstEntry(offset uintptr) unsafe.Pointer
- func (h *Head) FirstEntryOrNil(offset uintptr) unsafe.Pointer
- func (h *Head) ForEach(callback func(pos *Head))
- func (h *Head) ForEachPrev(callback func(pos *Head))
- func (h *Head) ForEachPrevSafe(callback func(pos *Head))
- func (h *Head) ForEachSafe(callback func(pos *Head))
- func (h *Head) Init()
- func (h *Head) IsLast() bool
- func (h *Head) LastEntry(offset uintptr) unsafe.Pointer
- func (h *Head) Len() int
- func (h *Head) Move(list *Head)
- func (h *Head) MoveTail(list *Head)
- func (pos *Head) NextEntry(offset uintptr) unsafe.Pointer
- func (pos *Head) PrevEntry(offset uintptr) unsafe.Pointer
- func (h *Head) Replace(new *Head)
- func (h *Head) ReplaceInit(new *Head)
- func (h *Head) RotateLeft()
- type Time
- type TimeEventMsg
- type TimeHandler
- type TimeNoder
- type Timer
- type TypeEventChan
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Head ¶
func (*Head) ForEachPrev ¶
func (*Head) ForEachPrevSafe ¶
func (*Head) ForEachSafe ¶
func (*Head) ReplaceInit ¶
func (*Head) RotateLeft ¶
func (h *Head) RotateLeft()
type TimeEventMsg ¶ added in v0.2.14
type TimeEventMsg struct {
Callback func()
}
type TimeHandler ¶ added in v0.2.14
type TimeHandler interface { EventChan() <-chan TypeEventChan After(delay time.Duration, cb func()) TimeNoder Schedule(interval time.Duration, cb func()) TimeNoder // 停止所有定时器 Stop() // 删除handler DelSelf() PrintDebug() }
func NewHandler ¶ added in v0.2.15
func NewHandler() TimeHandler
type TypeEventChan ¶ added in v0.2.14
type TypeEventChan interface{}
type TypeEventChan func(...interface{})
Click to show internal directories.
Click to hide internal directories.