db

package
v0.9.68 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2018 License: BSD-2-Clause Imports: 5 Imported by: 7

Documentation

Overview

Package db to connect to mongodb

Index

Constants

View Source
const (
	DialTimeout  = time.Duration(time.Second * 10)
	DialAttempts = 3
)

Variables

View Source
var (
	Connection connection
	DbTimeout  = time.Second * time.Duration(conf.MONGODB_TIMEOUT)
)

Functions

func Drop

func Drop() error

func Initialize

func Initialize() (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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