Versions in this module Expand all Collapse all v0 v0.6.1 Jul 31, 2023 v0.0.4 Jul 31, 2023 Changes in this version + const MaxEventNum + type Bus interface + Dispatch func(event *Event) + DispatchAndWait func(event *Event) + Unwatch func(event string, callback Callback) + Watch func(event string, callback Callback) + func NewEventBus() Bus + type Callback func(*Event) + type Event struct + Detail string + Extra interface{} + Name string + Time time.Time + type Queue interface + Dump func() interface{} + Push func(e *Event) + func NewQueue(cap int) Queue