Documentation ¶
Index ¶
- func MakeMgoModel(Identify, MainModel, SubModel string) string
- func Save(mgosession *mgo.Session, dbserver, redkey string, data interface{}) (err error)
- type TAokoMgo
- func (this *TAokoMgo) EnsureIndex(InParam IDBCache, idxs []string) (err error)
- func (this *TAokoMgo) Exit()
- func (this *TAokoMgo) GetMgoSession() (sess *mgo.Session, err error)
- func (this *TAokoMgo) InsertOne(Identify string, InParam IDBCache) (err error)
- func (this *TAokoMgo) NewDial()
- func (this *TAokoMgo) NewMgoSession() (session *mgo.Session, err error)
- func (this *TAokoMgo) QueryAcc(usrName string, OutParam IDBCache) (err error, exist bool)
- func (this *TAokoMgo) QueryByCondition(condition bson.M, OutParam IDBCache) (err error, exist bool)
- func (this *TAokoMgo) QueryOne(Identify string, OutParam IDBCache) (err error, exist bool)
- func (this *TAokoMgo) QuerySome(Identify string, OutParam IDBCache) (err error)
- func (this *TAokoMgo) SaveOne(Identify string, InParam IDBCache) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeMgoModel ¶
Types ¶
type TAokoMgo ¶
type TAokoMgo struct { sync.Mutex UserName string Passwd string ServiceHost string PoolCnt int // contains filtered or unexported fields }
func NewMgoConn ¶
func (*TAokoMgo) EnsureIndex ¶
func (*TAokoMgo) GetMgoSession ¶
func (*TAokoMgo) NewMgoSession ¶
func (*TAokoMgo) QueryByCondition ¶
Click to show internal directories.
Click to hide internal directories.