# Functions

NewEventStore creates a new EventStore with a MongoDB URI: `mongodb://hostname`.
NewEventStoreWithClient creates a new EventStore with a client.
WithEventHandler adds an event handler that will be called when saving 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.