Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventListener ¶
type EventListener func(event Event)
type EventManager ¶
type EventManager struct {
// contains filtered or unexported fields
}
func NewEventManager ¶
func NewEventManager() *EventManager
func (*EventManager) AddListener ¶
func (em *EventManager) AddListener(eventName string, listener EventListener)
func (*EventManager) Emit ¶
func (em *EventManager) Emit(event Event)
Click to show internal directories.
Click to hide internal directories.