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.

Imported by 57 package(s)

  1. github.com/bardusco/tsuru/api
  2. github.com/bardusco/tsuru/app
  3. github.com/bardusco/tsuru/auth
  4. github.com/bardusco/tsuru/collector
  5. github.com/bardusco/tsuru/provision/juju
  6. github.com/bardusco/tsuru/provision/local
  7. github.com/bardusco/tsuru/service
  8. github.com/getong/tsuru/api
  9. github.com/getong/tsuru/app
  10. github.com/getong/tsuru/auth
  11. github.com/getong/tsuru/collector
  12. github.com/getong/tsuru/service
  13. github.com/helmi03/golang-stuff/github.com/globocom/tsuru/api
  14. github.com/helmi03/golang-stuff/github.com/globocom/tsuru/app
  15. github.com/helmi03/golang-stuff/github.com/globocom/tsuru/auth
  16. github.com/helmi03/golang-stuff/github.com/globocom/tsuru/collector
  17. github.com/helmi03/golang-stuff/github.com/globocom/tsuru/provision/docker
  18. github.com/helmi03/golang-stuff/github.com/globocom/tsuru/provision/juju
  19. github.com/helmi03/golang-stuff/github.com/globocom/tsuru/provision/lxc
  20. github.com/helmi03/golang-stuff/github.com/globocom/tsuru/quota
  21. github.com/helmi03/golang-stuff/github.com/globocom/tsuru/rec
  22. github.com/helmi03/golang-stuff/github.com/globocom/tsuru/service
  23. github.com/helmi03/golang-stuff/github.com/globocom/tsuru/testing
  24. github.com/janqii/tsuru/api
  25. github.com/janqii/tsuru/app
  26. github.com/janqii/tsuru/auth
  27. github.com/janqii/tsuru/collector
  28. github.com/janqii/tsuru/rec
  29. github.com/janqii/tsuru/router
  30. github.com/janqii/tsuru/service
  31. github.com/janqii/tsuru/testing
  32. github.com/marcelo-rocha/tsuru/api
  33. github.com/marcelo-rocha/tsuru/app
  34. github.com/marcelo-rocha/tsuru/auth
  35. github.com/marcelo-rocha/tsuru/collector
  36. github.com/marcelo-rocha/tsuru/service
  37. github.com/milliyang/golang-stuff/github.com/globocom/tsuru/api
  38. github.com/milliyang/golang-stuff/github.com/globocom/tsuru/app
  39. github.com/milliyang/golang-stuff/github.com/globocom/tsuru/auth
  40. github.com/milliyang/golang-stuff/github.com/globocom/tsuru/collector
  41. github.com/milliyang/golang-stuff/github.com/globocom/tsuru/provision/docker
  42. github.com/milliyang/golang-stuff/github.com/globocom/tsuru/provision/juju
  43. github.com/milliyang/golang-stuff/github.com/globocom/tsuru/provision/lxc
  44. github.com/milliyang/golang-stuff/github.com/globocom/tsuru/quota
  45. github.com/milliyang/golang-stuff/github.com/globocom/tsuru/rec
  46. github.com/milliyang/golang-stuff/github.com/globocom/tsuru/service
  47. github.com/milliyang/golang-stuff/github.com/globocom/tsuru/testing
  48. github.com/rodsenra/tsuru/api
  49. github.com/rodsenra/tsuru/app
  50. github.com/rodsenra/tsuru/auth
  51. github.com/rodsenra/tsuru/collector
  52. github.com/rodsenra/tsuru/provision/docker
  53. github.com/rodsenra/tsuru/provision/juju
  54. github.com/rodsenra/tsuru/rec
  55. github.com/rodsenra/tsuru/router
  56. github.com/rodsenra/tsuru/service
  57. github.com/rodsenra/tsuru/testing

Imported only in test by 4 package(s)

  1. github.com/rodsenra/tsuru/cmd/tsr
  2. github.com/rodsenra/tsuru/router/elb
  3. github.com/rodsenra/tsuru/router/hipache
  4. github.com/rodsenra/tsuru/router/testing

Imports 4 package(s)

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

Test imports 1 package(s)

  1. gopkg.in/check.v1