Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEventStore ¶
func NewEventStore(enc codec.Encoding, opts ...mongo.EventStoreOption) *mongo.EventStore
NewEventStore returns a Store from the given Encoder and Options, but adds an Option that ensures a unique database name for every call to NewEventStore during the current process.
func UniqueName ¶ added in v0.4.0
UniqueName generates a unique string by appending a random hexadecimal string to the provided prefix. The generated string is intended for use as a unique identifier in database names. If there's an error in reading from the random source, the function will panic.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.