Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MatchListeners ¶
MatchListeners return a list of matching event names replacing * with any char and assuming a namespacing built with dots (.) eg. device_name.uu-id-val
func RemoveListeners ¶
RemoveListeners drop a list of listeners by event name
Types ¶
type BaseEvent ¶
type BaseEvent struct {
// contains filtered or unexported fields
}
BaseEvent contains unspecialized information about what happened
type Callback ¶
type Callback func(ev Event)
Callback is a function to be invoked when an event happens
func NewCallback ¶
NewCallback creates a new Callback to be passed to the emitter
Click to show internal directories.
Click to hide internal directories.