mongo

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2017 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package mongo provide drive for connections on mongo client and production

Index

Constants

View Source
const (
	// PRODUCTION const for operations on production servers
	PRODUCTION = "production"
	// LOCALHOST const for operations on locally servers
	LOCALHOST = "localhost"
)

Variables

This section is empty.

Functions

func GetSession

func GetSession(connection string, collection string) *mgo.Collection

GetSession return the mgo.Collection for any operations on database mongodb

func New

func New() (*mgo.Collection, *mgo.Collection)

New return two instances of different connections

Types

This section is empty.

Jump to

Keyboard shortcuts

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