Documentation ¶
Overview ¶
Package events allows for the registering and receiving of events.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Events ¶
type Events struct {
// contains filtered or unexported fields
}
Events maintains a mapping of unique id and channels so goroutines can register and receive events.
func (*Events) Acquire ¶
Acquire takes a unique id and returns a channel that can be used to receive events.
func (*Events) Release ¶
Release closes and removes the channel that was provided by the call to Acquire.
Click to show internal directories.
Click to hide internal directories.