package
0.3.0
Repository: https://github.com/gingfrederik/eventhorizon.git
Documentation: pkg.go.dev

# Functions

NewEventStore creates a new EventStore with a MongoDB URI: `mongodb://hostname`.
NewEventStoreWithClient creates a new EventStore with a client.
WithCollectionName uses a different event collection than the default "events".
WithEventHandler adds an event handler that will be called after saving events.
WithEventHandlerInTX adds an event handler that will be called during saving of events.

# Structs

EventStore implements an eventhorizon.EventStore for MongoDB using a single collection with one document per aggregate/stream which holds its events as values.

# Type aliases

Option is an option setter used to configure creation.