Documentation ¶
Index ¶
- Constants
- func WrapmgoCollectionCount(c *mgo.Collection) (int, error)
- func WrapmgoCollectionCreate(c *mgo.Collection, info *mgo.CollectionInfo) error
- func WrapmgoCollectionDropCollection(c *mgo.Collection) error
- func WrapmgoCollectionDropIndex(c *mgo.Collection, key ...string) error
- func WrapmgoCollectionDropIndexName(c *mgo.Collection, name string) error
- func WrapmgoCollectionEnsureIndex(c *mgo.Collection, index mgo.Index) error
- func WrapmgoCollectionEnsureIndexKey(c *mgo.Collection, key ...string) error
- func WrapmgoCollectionFind(c *mgo.Collection, query interface{}) *mgo.Query
- func WrapmgoCollectionFindId(c *mgo.Collection, query interface{}) *mgo.Query
- func WrapmgoCollectionIndexes(c *mgo.Collection) ([]mgo.Index, error)
- func WrapmgoCollectionInsert(c *mgo.Collection, docs ...interface{}) error
- func WrapmgoCollectionPipe(c *mgo.Collection, pipeline interface{}) *mgo.Pipe
- func WrapmgoCollectionRemove(c *mgo.Collection, selector interface{}) error
- func WrapmgoCollectionRemoveAll(c *mgo.Collection, selector interface{}) (*mgo.ChangeInfo, error)
- func WrapmgoCollectionRemoveId(c *mgo.Collection, id interface{}) error
- func WrapmgoCollectionRepair(c *mgo.Collection) *mgo.Iter
- func WrapmgoCollectionUpdate(c *mgo.Collection, selector interface{}, update interface{}) error
- func WrapmgoCollectionUpdateAll(c *mgo.Collection, selector interface{}, update interface{}) (*mgo.ChangeInfo, error)
- func WrapmgoCollectionUpdateId(c *mgo.Collection, id interface{}, update interface{}) error
- func WrapmgoCollectionUpsert(c *mgo.Collection, selector interface{}, update interface{}) (*mgo.ChangeInfo, error)
- func WrapmgoCollectionUpsertId(c *mgo.Collection, id interface{}, update interface{}) (*mgo.ChangeInfo, error)
- func WrapmgoDatabaseFindRef(db *mgo.Database, ref *mgo.DBRef) *mgo.Query
- func WrapmgoDialWithInfo(info *mgo.DialInfo) (*mgo.Session, error)
- func WrapmgoPipeAll(q *mgo.Pipe, result interface{}) error
- func WrapmgoPipeExplain(q *mgo.Pipe, result interface{}) error
- func WrapmgoPipeIter(q *mgo.Pipe) *mgo.Iter
- func WrapmgoPipeOne(q *mgo.Pipe, result interface{}) error
- func WrapmgoQueryAll(q *mgo.Query, result interface{}) error
- func WrapmgoQueryApply(q *mgo.Query, change mgo.Change, result interface{}) (*mgo.ChangeInfo, error)
- func WrapmgoQueryCount(q *mgo.Query) (int, error)
- func WrapmgoQueryDistinct(q *mgo.Query, key string, result interface{}) error
- func WrapmgoQueryExplain(q *mgo.Query, result interface{}) error
- func WrapmgoQueryFor(q *mgo.Query, result interface{}, f func() error) error
- func WrapmgoQueryIter(q *mgo.Query) *mgo.Iter
- func WrapmgoQueryMapReduce(q *mgo.Query, job *mgo.MapReduce, result interface{}) (*mgo.MapReduceInfo, error)
- func WrapmgoQueryOne(q *mgo.Query, result interface{}) error
- func WrapmgoQueryTail(q *mgo.Query, timeout time.Duration) *mgo.Iter
- func WrapmgoSessionClose(session *mgo.Session)
- func WrapmgoSessionFindRef(s *mgo.Session, ref *mgo.DBRef) *mgo.Query
- func WrapmgocopySession(session *mgo.Session, keepCreds bool) *mgo.Session
Constants ¶
View Source
const (
StorageIndexMgo = tingyun3.StorageIndexMgo
)
Variables ¶
This section is empty.
Functions ¶
func WrapmgoCollectionCount ¶
func WrapmgoCollectionCount(c *mgo.Collection) (int, error)
func WrapmgoCollectionCreate ¶
func WrapmgoCollectionCreate(c *mgo.Collection, info *mgo.CollectionInfo) error
func WrapmgoCollectionDropCollection ¶
func WrapmgoCollectionDropCollection(c *mgo.Collection) error
func WrapmgoCollectionDropIndex ¶
func WrapmgoCollectionDropIndex(c *mgo.Collection, key ...string) error
func WrapmgoCollectionDropIndexName ¶
func WrapmgoCollectionDropIndexName(c *mgo.Collection, name string) error
func WrapmgoCollectionEnsureIndex ¶
func WrapmgoCollectionEnsureIndex(c *mgo.Collection, index mgo.Index) error
func WrapmgoCollectionEnsureIndexKey ¶
func WrapmgoCollectionEnsureIndexKey(c *mgo.Collection, key ...string) error
func WrapmgoCollectionFind ¶
func WrapmgoCollectionFind(c *mgo.Collection, query interface{}) *mgo.Query
func WrapmgoCollectionFindId ¶
func WrapmgoCollectionFindId(c *mgo.Collection, query interface{}) *mgo.Query
func WrapmgoCollectionIndexes ¶
func WrapmgoCollectionIndexes(c *mgo.Collection) ([]mgo.Index, error)
func WrapmgoCollectionInsert ¶
func WrapmgoCollectionInsert(c *mgo.Collection, docs ...interface{}) error
func WrapmgoCollectionPipe ¶
func WrapmgoCollectionPipe(c *mgo.Collection, pipeline interface{}) *mgo.Pipe
func WrapmgoCollectionRemove ¶
func WrapmgoCollectionRemove(c *mgo.Collection, selector interface{}) error
func WrapmgoCollectionRemoveAll ¶
func WrapmgoCollectionRemoveAll(c *mgo.Collection, selector interface{}) (*mgo.ChangeInfo, error)
func WrapmgoCollectionRemoveId ¶
func WrapmgoCollectionRemoveId(c *mgo.Collection, id interface{}) error
func WrapmgoCollectionRepair ¶
func WrapmgoCollectionRepair(c *mgo.Collection) *mgo.Iter
func WrapmgoCollectionUpdate ¶
func WrapmgoCollectionUpdate(c *mgo.Collection, selector interface{}, update interface{}) error
func WrapmgoCollectionUpdateAll ¶
func WrapmgoCollectionUpdateAll(c *mgo.Collection, selector interface{}, update interface{}) (*mgo.ChangeInfo, error)
func WrapmgoCollectionUpdateId ¶
func WrapmgoCollectionUpdateId(c *mgo.Collection, id interface{}, update interface{}) error
func WrapmgoCollectionUpsert ¶
func WrapmgoCollectionUpsert(c *mgo.Collection, selector interface{}, update interface{}) (*mgo.ChangeInfo, error)
func WrapmgoCollectionUpsertId ¶
func WrapmgoCollectionUpsertId(c *mgo.Collection, id interface{}, update interface{}) (*mgo.ChangeInfo, error)
func WrapmgoDatabaseFindRef ¶
func WrapmgoPipeAll ¶
func WrapmgoPipeExplain ¶
func WrapmgoPipeOne ¶
func WrapmgoQueryAll ¶
func WrapmgoQueryApply ¶
func WrapmgoQueryDistinct ¶
func WrapmgoQueryExplain ¶
func WrapmgoQueryMapReduce ¶
func WrapmgoQueryOne ¶
func WrapmgoSessionClose ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.