Documentation
¶
Index ¶
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
}
Emitter exposes an EventEmitter-like interface
func (*Emitter) Off ¶
func (p *Emitter) Off(event string, handler EventHandler)
Off remove a listener function, pointer of the function passed must match with the one
func (*Emitter) On ¶
func (p *Emitter) On(event string, handler EventHandler)
On register a function. Note that the pointer to the function need to be the same to be removed with Off
Click to show internal directories.
Click to hide internal directories.