top

Package db encapsulates tsuru connection with MongoDB.

The function Conn dials to MongoDB using data from the configuration file and returns a connection (represented by the storage.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 3 package(s)

  1. github.com/tsuru/config
  2. github.com/tsuru/tsuru/db/storage
  3. gopkg.in/mgo.v2

Test imports 1 package(s)

  1. launchpad.net/gocheck