Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventHandler ¶
type EventHandler struct { eh.EventHandler // contains filtered or unexported fields }
EventHandler is an async event handler middleware. It will run the event in a new go routine and report any errors to the error channel obtained by Errors().
func NewEventHandler ¶
func NewEventHandler(h eh.EventHandler) *EventHandler
NewEventHandler creates a new EventHandler.
func (*EventHandler) Errors ¶
func (h *EventHandler) Errors() <-chan Error
Errors returns an error channel where async handling errors are sent.
func (*EventHandler) HandleEvent ¶
HandleEvent implements the HandleEvent method of the EventHandler interface.
Click to show internal directories.
Click to hide internal directories.