Documentation ¶
Index ¶
- type Emitter
- func (e *Emitter) Close()
- func (e *Emitter) Do(topic string, event Event)
- func (e *Emitter) Emit(topic string, event Event)
- func (e *Emitter) Flush(topic string)
- func (e *Emitter) FlushAll()
- func (e *Emitter) Listeners(topic string) []EventChan
- func (e *Emitter) Off(topic string, channels ...EventChan)
- func (e *Emitter) On(topic string, handlers ...func(Event)) EventChan
- type Event
- type EventChan
- type EventEmitter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Emitter ¶
type Emitter struct {
// contains filtered or unexported fields
}
func (*Emitter) Close ¶
func (e *Emitter) Close()
Close - closes all channels and removes all topics
func (*Emitter) Flush ¶
Flush - flushes all events from the topic channels and calls handlers for them
Click to show internal directories.
Click to hide internal directories.