Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Emitter ¶
type Emitter interface { // Emit fires an event with the given name and payload. Emit(EventName, interface{}) // On registers a listener for the given event name. On(EventName, ...Listener) // OnMany registers a listener for the given event names. ListenEvents(Listener, ...EventName) }
Emitter is an interface that allows to fire events.
Click to show internal directories.
Click to hide internal directories.