Documentation
¶
Index ¶
- type InMemoryEventStore
- func (im *InMemoryEventStore) RepublishAllEvents() error
- func (im *InMemoryEventStore) RetrieveEvents(aggregateID string) ([]goes.Event, error)
- func (im *InMemoryEventStore) StoreEvents(agg *goes.Aggregate) error
- func (im *InMemoryEventStore) SubscribeEvents(callback goes.EventPublishedCallback) goes.SubscriptionID
- func (im *InMemoryEventStore) Unsubscribe(subscriptionID goes.SubscriptionID)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InMemoryEventStore ¶
InMemoryEventStore implements the
func NewInMemoryEventStore ¶
func NewInMemoryEventStore() *InMemoryEventStore
NewInMemoryEventStore is a factory method for creating InMemoryEventStore instances.
func (*InMemoryEventStore) RepublishAllEvents ¶ added in v1.7.0
func (im *InMemoryEventStore) RepublishAllEvents() error
RepublishAllEvents republishers events to subscribers.
func (*InMemoryEventStore) RetrieveEvents ¶
func (im *InMemoryEventStore) RetrieveEvents(aggregateID string) ([]goes.Event, error)
RetrieveEvents retrieves the events in the event store assocaited with the given aggregate id.
func (*InMemoryEventStore) StoreEvents ¶
func (im *InMemoryEventStore) StoreEvents(agg *goes.Aggregate) error
StoreEvents stores the events for the given aggregate in the event store.
func (*InMemoryEventStore) SubscribeEvents ¶
func (im *InMemoryEventStore) SubscribeEvents(callback goes.EventPublishedCallback) goes.SubscriptionID
SubscribeEvents registers the provided callback as an event subscriber.
func (*InMemoryEventStore) Unsubscribe ¶
func (im *InMemoryEventStore) Unsubscribe(subscriptionID goes.SubscriptionID)
Unsubscribe removes the event subscription associated with the provided subscription id.
Click to show internal directories.
Click to hide internal directories.