Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventPublisher ¶
type EventPublisher struct {
// contains filtered or unexported fields
}
EventPublisher is an event publisher that notifies registered EventHandlers of published events. It will use the SimpleEventHandlingStrategy by default.
func NewEventPublisher ¶
func NewEventPublisher() *EventPublisher
NewEventPublisher creates a EventPublisher.
func (*EventPublisher) AddObserver ¶
func (b *EventPublisher) AddObserver(observer eh.EventObserver)
AddObserver implements the AddObserver method of the eventhorizon.EventPublisher interface.
func (*EventPublisher) HandleEvent ¶
HandleEvent implements the HandleEvent method of the eventhorizon.EventPublisher interface.
Click to show internal directories.
Click to hide internal directories.