Versions in this module Expand all Collapse all v1 v1.0.0 Dec 19, 2023 Changes in this version + var Config = Configuration + func Database(dbName string) *mgo.Database + func DatabaseWithSubName(dbName, subName string) *mgo.Database + func Ping() + func ResetAllSession() + func SetAutoPing(interv time.Duration) + type Collection struct + Ref int32 + func DatabaseC(dbName, collectionName string) *Collection + func DatabaseWithSubNameC(dbName, subName, collectionName string) *Collection + func (c *Collection) Hold() + func (c *Collection) IsValid() bool + func (c *Collection) Unhold() + type Configuration struct + Dbs map[string]DbConfig + func (c *Configuration) Close() error + func (c *Configuration) Init() error + func (c *Configuration) Name() string + type DbConfig struct + Database string + Host string + Password string + Safe mgo.Safe + User string