Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertDispatched ¶
AssertDispatched asserts an event has been dispatched.
func Fake ¶
func Fake()
Fake sets up the "test mode" of the events package. Typically you'd call this function in the TestMain function in the package you're testing. It will prevent any events from being fired, instead they will be recorded and be available for assertions.
func InitEvents ¶
func InitEvents() (err error)
InitEvents sets up everything needed to work with events
func RegisterListener ¶
RegisterListener is used to register a listener when a specific event happens
Types ¶
Click to show internal directories.
Click to hide internal directories.