Documentation
¶
Index ¶
- type EventBus
- type EventStore
- func (s *EventStore) Append(events *goengine.EventStream) error
- func (s *EventStore) CountEventsFor(streamName goengine.StreamName, id string) (int64, error)
- func (s *EventStore) FromVersion(streamName goengine.StreamName, id string, version int) (*goengine.EventStream, error)
- func (s *EventStore) GetEventsFor(streamName goengine.StreamName, id string) (*goengine.EventStream, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventBus ¶
type EventBus struct {
// contains filtered or unexported fields
}
EventBus provides an in memory implementation of the VersionedEventPublisher VersionedEventReceiver interfaces
func (*EventBus) PublishEvents ¶
func (bus *EventBus) PublishEvents(events []*goengine.DomainMessage) error
PublishEvents publishes events to the event bus
func (*EventBus) ReceiveEvents ¶
func (bus *EventBus) ReceiveEvents(options goengine.VersionedEventReceiverOptions) error
ReceiveEvents starts a go routine that monitors incoming events and routes them to a receiver channel specified within the options
type EventStore ¶
type EventStore struct {
// contains filtered or unexported fields
}
EventStore ...
func (*EventStore) Append ¶
func (s *EventStore) Append(events *goengine.EventStream) error
Append ...
func (*EventStore) CountEventsFor ¶
func (s *EventStore) CountEventsFor(streamName goengine.StreamName, id string) (int64, error)
CountEventsFor ...
func (*EventStore) FromVersion ¶
func (s *EventStore) FromVersion(streamName goengine.StreamName, id string, version int) (*goengine.EventStream, error)
FromVersion ...
func (*EventStore) GetEventsFor ¶
func (s *EventStore) GetEventsFor(streamName goengine.StreamName, id string) (*goengine.EventStream, error)
GetEventsFor ...
Click to show internal directories.
Click to hide internal directories.