top

Package db encapsulates tsuru connection with MongoDB.

The function Open dials to MongoDB and returns a connection (represented by the Storage type). It manages an internal pool of connections, and reconnects in case of failures. That means that you should not store references to the connection, but always call Open.

Imports 2 package(s)

  1. github.com/globocom/config
  2. labix.org/v2/mgo

Test imports 1 package(s)

  1. launchpad.net/gocheck