Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventBus ¶
type EventBus struct {
// contains filtered or unexported fields
}
EventBus manages event subscriptions and publications
func (*EventBus) Subscribe ¶
func (eb *EventBus) Subscribe(eventType events.EventType, handler EventHandler)
Subscribe registers a handler for a specific event type
func (*EventBus) Unsubscribe ¶
func (eb *EventBus) Unsubscribe(eventType events.EventType, handler EventHandler)
Unsubscribe removes a handler for a specific event type
type EventHandler ¶
EventHandler is a function that handles an event
Click to show internal directories.
Click to hide internal directories.