mongo

package
v0.0.0-...-5d161f4 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2014 License: BSD-2-Clause-Views Imports: 3 Imported by: 0

Documentation

Overview

Package mongo provides mongo connectivity support.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseSession

func CloseSession(goRoutine string, mongoSession *mgo.Session)

CloseSession puts the connection back into the pool.

func CopySession

func CopySession(goRoutine string) (*mgo.Session, error)

CopySession get a new connection based on an existing connection.

func GetCollection

func GetCollection(mongoSession *mgo.Session, collectionName string) (collection *mgo.Collection)

GetCollection returns a reference to a collection for the specified database and collection name.

func GetSession

func GetSession(goRoutine string) (*mgo.Session, error)

GetSession grabs a connection from the pool for use.

func Shutdown

func Shutdown(goRoutine string) error

Shutdown systematically brings the manager down gracefully.

func Startup

func Startup(goRoutine string) error

Startup brings the manager to a running state.

Types

This section is empty.

Jump to

Keyboard shortcuts

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