//
pkg.gl
Category
github.com/gliderlabs/comlab
pkg
events
package
0.1.0
Repository:
https://github.com/gliderlabs/comlab.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
1
Dependents
0
Files
76 SLOC
#
Functions
Emit
Emit triggers the handlers of listeners that match the event, passing the event to them.
Listen
Listen adds a listener to receive events on the default emitter.
Unlisten
Unlisten removes a listener from receiving events on the default emitter.
#
Structs
Emitter
Emitter is a collection of Listeners that you can Emit events to.
Listener
Listener wraps an event handler callback, optionally specifying how it receives events from an Emitter.
#
Interfaces
Event
Event interface is used to identify events.
#
Type aliases
Signal
Signal is a builtin event that is just a name with no other payload.