local

package
v0.0.0-...-6efc50b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

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) PublishEvent

func (b *EventPublisher) PublishEvent(ctx context.Context, event eh.Event) error

PublishEvent implements the PublishEvent method of the eventhorizon.EventPublisher interface.

func (*EventPublisher) SetHandlingStrategy

func (b *EventPublisher) SetHandlingStrategy(strategy eh.EventHandlingStrategy)

SetHandlingStrategy implements the SetHandlingStrategy method of the eventhorizon.EventPublisher interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL