db

package
v0.0.0-...-71b0d36 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ConnectionTimeout database connection timeout
	ConnectionTimeout = 10 * time.Second
	// PingTimeout database ping timeout
	PingTimeout = 2 * time.Second
)

Variables

This section is empty.

Functions

func New

func New(cfg config.Database) (*mongo.Database, error)

New creates a new mongodb connection and tests it

Types

This section is empty.

Jump to

Keyboard shortcuts

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