package
0.20.0
Repository: https://github.com/clarilab/eventhorizon.git
Documentation: pkg.go.dev

# Functions

IntoRepo tries to convert a eh.ReadRepo into a Repo by recursively looking at inner repos.
NewMongoDBRepo creates a new Repo using the eventhorizon.MongoDB interface.
NewRepo creates a new Repo.
NewRepoWithClient creates a new Repo with a client.
WithCollectionName uses different collections from the default "repository" collection.
WithConnectionCheck adds an optional DB connection check when calling New().

# Variables

ErrModelNotSet is when a model factory is not set on the Repo.
ErrNoCursor is when a provided callback function returns a nil cursor.

# Structs

Repo implements an MongoDB repository for entities.

# Type aliases

Option is an option setter used to configure creation.