Documentation ¶
Index ¶
- Variables
- type MgoDb
- func (this *MgoDb) C(collection string) *mgo.Collection
- func (this *MgoDb) Close() bool
- func (this *MgoDb) DropoDb()
- func (this *MgoDb) Index(collection string, keys []string) bool
- func (this *MgoDb) Init() *mgo.Session
- func (this *MgoDb) IsDup(err error) bool
- func (this *MgoDb) RemoveAll(collection string) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Host = "mongodb://ds021346.mlab.com:21346/" Database = "paper" AuthDatabase = "authdb" AuthUserName = "root" AuthPassword = "pass" )
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.