Documentation ¶
Index ¶
- type Mongodb
- func (m *Mongodb) Check() error
- func (m *Mongodb) Close()
- func (m *Mongodb) GetConnection(dbName ...string) (*mgo.Database, error)
- func (m *Mongodb) Init(mongodbConfigUrl string)
- func (m *Mongodb) IsMultiDB() bool
- func (m *Mongodb) ListConnNames() []string
- func (m *Mongodb) ReturnConnection(conn *mgo.Database)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mongodb ¶
type Mongodb struct {
// contains filtered or unexported fields
}
func (*Mongodb) GetConnection ¶
func (*Mongodb) ListConnNames ¶ added in v1.1.23
func (*Mongodb) ReturnConnection ¶
func (m *Mongodb) ReturnConnection(conn *mgo.Database)
Click to show internal directories.
Click to hide internal directories.