Versions in this module Expand all Collapse all v0 v0.4.0 Jun 6, 2023 Changes in this version + const SESSION_EXPIRIED + var DefaultEventBus = AsyncEventBus + type AsyncEventBus struct + func (bus *AsyncEventBus) Publish(event Event) + func (bus *AsyncEventBus) Subscribe(eventType EventType, handler EventHandler) + type Event struct + Data interface{} + EventType EventType + Ts int64 + func NewEvent(eventType EventType, data any) Event + type EventBus interface + Publish func(event Event) + Subscribe func(eventType EventType, handler EventHandler) + type EventHandler func(event Event) + type EventType int