mongo

package
v0.0.0-...-923a007 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database struct {
	// contains filtered or unexported fields
}

Database ...

func New

func New(connString string, users map[string]entity.UserOpts) (*Database, error)

New creates a mongodb client and creates a database with given data

func (*Database) ReadUser

func (d *Database) ReadUser(login string) (*entity.UserOpts, error)

ReadUser extracts a user by login

Jump to

Keyboard shortcuts

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