Documentation
¶
Overview ¶
本包只做mongodb的异步操作实现 只实现常用功能
复杂操作可以使用mongodb的原始接口进行操作
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoDriver ¶
type MongoDriver struct { *Config // contains filtered or unexported fields }
func NewMongoDriver ¶
func NewMongoDriver() *MongoDriver
func (*MongoDriver) Execute ¶
func (self *MongoDriver) Execute(dbfunc func(sess *mgo.Session))
func (*MongoDriver) Start ¶
func (self *MongoDriver) Start(cfg *Config) error
func (*MongoDriver) Stop ¶
func (self *MongoDriver) Stop()
Click to show internal directories.
Click to hide internal directories.