database

package
v0.0.0-...-f9f63b7 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2015 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package database implements functions that connect to Shelves's databases, at the time of writing, is only MongoDB.

Index

Constants

This section is empty.

Variables

View Source
var (
	LogMongoDRV, LogMongoTX = models.ReturnDBLoggers()
)

Functions

func MongoConnect

func MongoConnect(hostname string) (*mgo.Session, error)

MongoConnect takes a hostname variable of string type, connects to the MongoDB server, and returns a type of *mgo.Session and a nil error value, if successful.

Types

This section is empty.

Jump to

Keyboard shortcuts

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