Documentation ¶
Index ¶
- func MongDeleteOne(req *RequestMeta, selector interface{}) error
- func MongInsertOne(req *RequestMeta, docs interface{}) error
- func MongUpsertOne(req *RequestMeta, selector interface{}, update interface{}) (*mgo.ChangeInfo, error)
- func MongoEnsureIndex(req *RequestMeta, indexes []string) error
- func MongoEnsureIndexWithExpire(req *RequestMeta, indexes []string, afterTime time.Duration) error
- func MongoNormalQuery(req *RequestMeta, query *QueryMetaData, result interface{}) error
- func MongoQueryCount(req *RequestMeta, query *QueryMetaData) (int, error)
- func MongoQueryOne(req *RequestMeta, query *QueryMetaData, result interface{}) error
- func MongoQueryOneNoCondition(req *RequestMeta, result interface{}) error
- type QueryMetaData
- type RequestMeta
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MongDeleteOne ¶
func MongDeleteOne(req *RequestMeta, selector interface{}) error
func MongInsertOne ¶
func MongInsertOne(req *RequestMeta, docs interface{}) error
func MongUpsertOne ¶
func MongUpsertOne(req *RequestMeta, selector interface{}, update interface{}) (*mgo.ChangeInfo, error)
func MongoEnsureIndex ¶
func MongoEnsureIndex(req *RequestMeta, indexes []string) error
func MongoEnsureIndexWithExpire ¶
func MongoEnsureIndexWithExpire(req *RequestMeta, indexes []string, afterTime time.Duration) error
func MongoNormalQuery ¶
func MongoNormalQuery(req *RequestMeta, query *QueryMetaData, result interface{}) error
func MongoQueryCount ¶
func MongoQueryCount(req *RequestMeta, query *QueryMetaData) (int, error)
func MongoQueryOne ¶
func MongoQueryOne(req *RequestMeta, query *QueryMetaData, result interface{}) error
func MongoQueryOneNoCondition ¶
func MongoQueryOneNoCondition(req *RequestMeta, result interface{}) error
Types ¶
type QueryMetaData ¶
Click to show internal directories.
Click to hide internal directories.