mongotest

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 15, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

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

func UniqueName(prefix string) string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL