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 66 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/lucasgomide/tsuru/api
  33. github.com/lucasgomide/tsuru/app
  34. github.com/lucasgomide/tsuru/auth
  35. github.com/lucasgomide/tsuru/collector
  36. github.com/lucasgomide/tsuru/quota
  37. github.com/lucasgomide/tsuru/rec
  38. github.com/lucasgomide/tsuru/router
  39. github.com/lucasgomide/tsuru/service
  40. github.com/lucasgomide/tsuru/testing
  41. github.com/marcelo-rocha/tsuru/api
  42. github.com/marcelo-rocha/tsuru/app
  43. github.com/marcelo-rocha/tsuru/auth
  44. github.com/marcelo-rocha/tsuru/collector
  45. github.com/marcelo-rocha/tsuru/service
  46. github.com/milliyang/golang-stuff/github.com/globocom/tsuru/api
  47. github.com/milliyang/golang-stuff/github.com/globocom/tsuru/app
  48. github.com/milliyang/golang-stuff/github.com/globocom/tsuru/auth
  49. github.com/milliyang/golang-stuff/github.com/globocom/tsuru/collector
  50. github.com/milliyang/golang-stuff/github.com/globocom/tsuru/provision/docker
  51. github.com/milliyang/golang-stuff/github.com/globocom/tsuru/provision/juju
  52. github.com/milliyang/golang-stuff/github.com/globocom/tsuru/provision/lxc
  53. github.com/milliyang/golang-stuff/github.com/globocom/tsuru/quota
  54. github.com/milliyang/golang-stuff/github.com/globocom/tsuru/rec
  55. github.com/milliyang/golang-stuff/github.com/globocom/tsuru/service
  56. github.com/milliyang/golang-stuff/github.com/globocom/tsuru/testing
  57. github.com/rodsenra/tsuru/api
  58. github.com/rodsenra/tsuru/app
  59. github.com/rodsenra/tsuru/auth
  60. github.com/rodsenra/tsuru/collector
  61. github.com/rodsenra/tsuru/provision/docker
  62. github.com/rodsenra/tsuru/provision/juju
  63. github.com/rodsenra/tsuru/rec
  64. github.com/rodsenra/tsuru/router
  65. github.com/rodsenra/tsuru/service
  66. 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