Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrEventNotSupported = errors.New("this event type is not supported")
)
Functions ¶
This section is empty.
Types ¶
type EventRouter ¶
type EventRouter struct {
// contains filtered or unexported fields
}
func NewEventRouter ¶
func NewEventRouter() *EventRouter
func (*EventRouter) Handle ¶
func (er *EventRouter) Handle(eventType types.EventType, eventHandler types.EventHandler) types.EventRouter
func (*EventRouter) Handlers ¶
func (er *EventRouter) Handlers() map[types.EventType]types.EventHandler
Click to show internal directories.
Click to hide internal directories.