Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DynamicEventMapper ¶
type DynamicEventMapper struct {
// contains filtered or unexported fields
}
func (*DynamicEventMapper) MapEvent ¶
func (e *DynamicEventMapper) MapEvent(eventName string, serialized interface{}) (Event, error)
func (*DynamicEventMapper) RegisterMapping ¶
func (e *DynamicEventMapper) RegisterMapping(eventType reflect.Type) error
type EventEmitter ¶
type EventListener ¶
type EventListener interface { Listen(events ...string) (<-chan Event, <-chan error, error) Mapper() EventMapper }
EventListener describes an interface for a class that can listen to events.
type EventMapper ¶
func NewDynamicEventMapper ¶
func NewDynamicEventMapper() EventMapper
func NewEventMapper ¶
func NewEventMapper() EventMapper
type StaticEventMapper ¶
type StaticEventMapper struct{}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.