fakes

package
v0.0.0-...-5601fd7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2015 License: Apache-2.0, GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

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

type FakeCollection struct {
	mgo.Collection
	Data  []byte
	Error error
}

FakeCollection -

func (*FakeCollection) Close

func (s *FakeCollection) Close()

Close -

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 -

func (*FakeCollection) Wake

func (s *FakeCollection) Wake()

Wake -

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL