mongo

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2022 License: EUPL-1.2 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(uri string, opts *BackendOptions) (engine.IBackend, error)

Connect connects to the database

Types

type BackendOptions

type BackendOptions struct {
	//QueryTimeout is the maximum time a query should take
	QueryTimeout time.Duration
	// contains filtered or unexported fields
}

BackendOptions is the option structure for MongoBackend

func DefaultOptions

func DefaultOptions(logger *zap.Logger) BackendOptions

DefaultOptions returns the default options for MongoBackend

type User

type User struct {
	store.User             `bson:",inline"`
	engine.UserDetailEntry `bson:",inline"`
}

Jump to

Keyboard shortcuts

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