Versions in this module Expand all Collapse all v0 v0.5.7 Jun 14, 2021 Changes in this version + const PriHigh + const PriHighest + const PriLow + const PriLowest + const PriNorm + type ArgMap map[string]interface + type BaseEvent struct + Name_ string + func (b *BaseEvent) IsCancelled() bool + func (b *BaseEvent) Name() string + func (b *BaseEvent) SetCancelled(c bool) bool + type Event interface + IsCancelled func() bool + Name func() string + SetCancelled func(bool) bool + type Handler struct + Func HandlerFunc + ID int + Priority int + type HandlerFunc func(Event) + type HandlerList []Handler + func (h HandlerList) Len() int + func (h HandlerList) Less(i, j int) bool + func (h HandlerList) Swap(i, j int) + type Manager struct + func (m *Manager) Attach(name string, f HandlerFunc, priority int) int + func (m *Manager) AttachMany(f HandlerFunc, priority int, names ...string) int + func (m *Manager) AttachMultiShot(name string, f HandlerFunc, priority, count int) int + func (m *Manager) AttachOneShot(name string, f HandlerFunc, priority int) int + func (m *Manager) Detach(id int) bool + func (m *Manager) Dispatch(event Event) + func (m *Manager) HasEvent(name string) bool + func (m *Manager) WaitFor(name string) Event + func (m *Manager) WaitForChan(name string) <-chan Event + type Map map[string]HandlerList + type SimpleEvent struct + func NewSimpleEvent(name string) *SimpleEvent v0.5.6 Sep 25, 2020