Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Config = Configuration{ Dbs: make(map[string]DbConfig), }
Functions ¶
func DatabaseWithSubName ¶
func SetAutoPing ¶
Types ¶
type Collection ¶
type Collection struct { *mgo.Collection Ref int32 // contains filtered or unexported fields }
func DatabaseC ¶
func DatabaseC(dbName, collectionName string) *Collection
func DatabaseWithSubNameC ¶
func DatabaseWithSubNameC(dbName, subName, collectionName string) *Collection
func (*Collection) Hold ¶
func (c *Collection) Hold()
func (*Collection) IsValid ¶
func (c *Collection) IsValid() bool
func (*Collection) Unhold ¶
func (c *Collection) Unhold()
type Configuration ¶
func (*Configuration) Close ¶
func (c *Configuration) Close() error
func (*Configuration) Init ¶
func (c *Configuration) Init() error
func (*Configuration) Name ¶
func (c *Configuration) Name() string
Click to show internal directories.
Click to hide internal directories.