Documentation
¶
Index ¶
- func FakeNewCollectionDialer(c interface{}) func(url, dbname, collectionname string) (col cfmgo.Collection, err error)
- type FakeCollection
- func (s *FakeCollection) Close()
- func (s *FakeCollection) Find(params cfmgo.Params, result interface{}) (count int, err error)
- func (s *FakeCollection) FindAndModify(selector interface{}, update interface{}, result interface{}) (info *mgo.ChangeInfo, err error)
- func (s *FakeCollection) FindOne(id string, result interface{}) (err error)
- func (s *FakeCollection) UpsertID(id interface{}, result interface{}) (changInfo *mgo.ChangeInfo, err error)
- func (s *FakeCollection) Wake()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FakeNewCollectionDialer ¶
func FakeNewCollectionDialer(c interface{}) func(url, dbname, collectionname string) (col cfmgo.Collection, err error)
FakeNewCollectionDialer -
Types ¶
type FakeCollection ¶
FakeCollection -
func (*FakeCollection) Find ¶
func (s *FakeCollection) Find(params cfmgo.Params, result interface{}) (count int, err error)
Find -- finds all records matching given selector
func (*FakeCollection) FindAndModify ¶
func (s *FakeCollection) FindAndModify(selector interface{}, update interface{}, result interface{}) (info *mgo.ChangeInfo, err error)
FindAndModify -
func (*FakeCollection) FindOne ¶
func (s *FakeCollection) FindOne(id string, result interface{}) (err error)
FindOne -
func (*FakeCollection) UpsertID ¶
func (s *FakeCollection) UpsertID(id interface{}, result interface{}) (changInfo *mgo.ChangeInfo, err error)
UpsertID -
Click to show internal directories.
Click to hide internal directories.