Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEventsHandler ¶
Types ¶
type EventHandler ¶
EventHandler helps to broadcast events to multiple listeners.
func (*EventHandler) AddListener ¶
func (eb *EventHandler) AddListener(listener events.EventListener)
AddListener registers new event listener.
func (*EventHandler) NumListeners ¶
func (eb *EventHandler) NumListeners() int
NumListeners returns number of event listeners.
func (*EventHandler) Push ¶
func (eb *EventHandler) Push(e interface{})
Push broadcast events across all event listeners.
Click to show internal directories.
Click to hide internal directories.