Versions in this module Expand all Collapse all v1 v1.0.1 Apr 6, 2026 v1.0.0 Apr 5, 2026 Changes in this version + func Dispatch(event IEvent) error + func DispatchAsync(event IEvent) + func ListenOn[T IEvent](d *Dispatcher, listener IListener[T]) + func Listen[T IEvent](listener IListener[T]) + func Subscribe(subscriber ISubscriber) + type Dispatcher struct + func (d *Dispatcher) Dispatch(event IEvent) error + func (d *Dispatcher) DispatchAsync(event IEvent) + func (d *Dispatcher) Subscribe(subscriber ISubscriber) + type IEvent interface + EventName func() string + type IListener interface + Handle func(event T) error + type ISubscriber interface + Subscribe func(dispatcher *Dispatcher)