Documentation ¶
Overview ¶
Package eventmanager emits events.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEventManager ¶
func NewEventManager(log I.Logger) I.EventManager
Types ¶
type EventManager ¶
EventManager has handlers for each registered event type.
func (*EventManager) AddBinding ¶
func (e *EventManager) AddBinding(binding I.Binding)
func (*EventManager) AddHandler ¶
func (e *EventManager) AddHandler(handler I.Handler, eventType string) error
AddHandler takes a handler and eventType and returns an error if a handler is not provided.
type EventManagerConstructor ¶
type EventManagerConstructor func(log I.Logger) I.EventManager
type InvalidArgumentError ¶ added in v0.6.0
type InvalidArgumentError struct{}
func (InvalidArgumentError) Error ¶ added in v0.6.0
func (e InvalidArgumentError) Error() string
type InvalidEventType ¶
type InvalidEventType struct {
Err
}
Click to show internal directories.
Click to hide internal directories.