database

package
v0.0.0-...-3248c7a Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

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

DB holds a mongo client.

func Connect

func Connect(mongodbURI string) *DB

Connect connects to specified mongoDB URI.

func (*DB) FindUser

func (db *DB) FindUser() *model.User

FindUser gets the first user it finds in the db.

Jump to

Keyboard shortcuts

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