mgoimock

package module
v0.0.0-...-e2ec5d3 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package mgoimock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBulk

type MockBulk struct {
	// contains filtered or unexported fields
}

MockBulk is a mock of Bulk interface.

func NewMockBulk

func NewMockBulk(ctrl *gomock.Controller) *MockBulk

NewMockBulk creates a new mock instance.

func (*MockBulk) EXPECT

func (m *MockBulk) EXPECT() *MockBulkMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockBulk) Insert

func (m *MockBulk) Insert(arg0 ...interface{})

Insert mocks base method.

func (*MockBulk) Remove

func (m *MockBulk) Remove(arg0 ...interface{})

Remove mocks base method.

func (*MockBulk) RemoveAll

func (m *MockBulk) RemoveAll(arg0 ...interface{})

RemoveAll mocks base method.

func (*MockBulk) Run

func (m *MockBulk) Run() (*mgo.BulkResult, error)

Run mocks base method.

func (*MockBulk) Unordered

func (m *MockBulk) Unordered()

Unordered mocks base method.

func (*MockBulk) Update

func (m *MockBulk) Update(arg0 ...interface{})

Update mocks base method.

func (*MockBulk) UpdateAll

func (m *MockBulk) UpdateAll(arg0 ...interface{})

UpdateAll mocks base method.

func (*MockBulk) Upsert

func (m *MockBulk) Upsert(arg0 ...interface{})

Upsert mocks base method.

type MockBulkMockRecorder

type MockBulkMockRecorder struct {
	// contains filtered or unexported fields
}

MockBulkMockRecorder is the mock recorder for MockBulk.

func (*MockBulkMockRecorder) Insert

func (mr *MockBulkMockRecorder) Insert(arg0 ...interface{}) *gomock.Call

Insert indicates an expected call of Insert.

func (*MockBulkMockRecorder) Remove

func (mr *MockBulkMockRecorder) Remove(arg0 ...interface{}) *gomock.Call

Remove indicates an expected call of Remove.

func (*MockBulkMockRecorder) RemoveAll

func (mr *MockBulkMockRecorder) RemoveAll(arg0 ...interface{}) *gomock.Call

RemoveAll indicates an expected call of RemoveAll.

func (*MockBulkMockRecorder) Run

func (mr *MockBulkMockRecorder) Run() *gomock.Call

Run indicates an expected call of Run.

func (*MockBulkMockRecorder) Unordered

func (mr *MockBulkMockRecorder) Unordered() *gomock.Call

Unordered indicates an expected call of Unordered.

func (*MockBulkMockRecorder) Update

func (mr *MockBulkMockRecorder) Update(arg0 ...interface{}) *gomock.Call

Update indicates an expected call of Update.

func (*MockBulkMockRecorder) UpdateAll

func (mr *MockBulkMockRecorder) UpdateAll(arg0 ...interface{}) *gomock.Call

UpdateAll indicates an expected call of UpdateAll.

func (*MockBulkMockRecorder) Upsert

func (mr *MockBulkMockRecorder) Upsert(arg0 ...interface{}) *gomock.Call

Upsert indicates an expected call of Upsert.

type MockCollection

type MockCollection struct {
	// contains filtered or unexported fields
}

MockCollection is a mock of Collection interface.

func NewMockCollection

func NewMockCollection(ctrl *gomock.Controller) *MockCollection

NewMockCollection creates a new mock instance.

func (*MockCollection) Bulk

func (m *MockCollection) Bulk() mgoi.Bulk

Bulk mocks base method.

func (*MockCollection) Count

func (m *MockCollection) Count() (int, error)

Count mocks base method.

func (*MockCollection) Create

func (m *MockCollection) Create(arg0 *mgo.CollectionInfo) error

Create mocks base method.

func (*MockCollection) DropAllIndexes

func (m *MockCollection) DropAllIndexes() error

DropAllIndexes mocks base method.

func (*MockCollection) DropCollection

func (m *MockCollection) DropCollection() error

DropCollection mocks base method.

func (*MockCollection) DropIndex

func (m *MockCollection) DropIndex(arg0 ...string) error

DropIndex mocks base method.

func (*MockCollection) DropIndexName

func (m *MockCollection) DropIndexName(arg0 string) error

DropIndexName mocks base method.

func (*MockCollection) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockCollection) EnsureIndex

func (m *MockCollection) EnsureIndex(arg0 mgo.Index) error

EnsureIndex mocks base method.

func (*MockCollection) EnsureIndexKey

func (m *MockCollection) EnsureIndexKey(arg0 ...string) error

EnsureIndexKey mocks base method.

func (*MockCollection) Find

func (m *MockCollection) Find(arg0 interface{}) mgoi.Query

Find mocks base method.

func (*MockCollection) FindId

func (m *MockCollection) FindId(arg0 interface{}) mgoi.Query

FindId mocks base method.

func (*MockCollection) Indexes

func (m *MockCollection) Indexes() ([]mgo.Index, error)

Indexes mocks base method.

func (*MockCollection) Insert

func (m *MockCollection) Insert(arg0 ...interface{}) error

Insert mocks base method.

func (*MockCollection) Remove

func (m *MockCollection) Remove(arg0 interface{}) error

Remove mocks base method.

func (*MockCollection) RemoveAll

func (m *MockCollection) RemoveAll(arg0 interface{}) (*mgo.ChangeInfo, error)

RemoveAll mocks base method.

func (*MockCollection) RemoveId

func (m *MockCollection) RemoveId(arg0 interface{}) error

RemoveId mocks base method.

func (*MockCollection) Repair

func (m *MockCollection) Repair() mgoi.Iter

Repair mocks base method.

func (*MockCollection) Update

func (m *MockCollection) Update(arg0, arg1 interface{}) error

Update mocks base method.

func (*MockCollection) UpdateAll

func (m *MockCollection) UpdateAll(arg0, arg1 interface{}) (*mgo.ChangeInfo, error)

UpdateAll mocks base method.

func (*MockCollection) UpdateId

func (m *MockCollection) UpdateId(arg0, arg1 interface{}) error

UpdateId mocks base method.

func (*MockCollection) Upsert

func (m *MockCollection) Upsert(arg0, arg1 interface{}) (*mgo.ChangeInfo, error)

Upsert mocks base method.

func (*MockCollection) UpsertId

func (m *MockCollection) UpsertId(arg0, arg1 interface{}) (*mgo.ChangeInfo, error)

UpsertId mocks base method.

type MockCollectionMockRecorder

type MockCollectionMockRecorder struct {
	// contains filtered or unexported fields
}

MockCollectionMockRecorder is the mock recorder for MockCollection.

func (*MockCollectionMockRecorder) Bulk

Bulk indicates an expected call of Bulk.

func (*MockCollectionMockRecorder) Count

func (mr *MockCollectionMockRecorder) Count() *gomock.Call

Count indicates an expected call of Count.

func (*MockCollectionMockRecorder) Create

func (mr *MockCollectionMockRecorder) Create(arg0 interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockCollectionMockRecorder) DropAllIndexes

func (mr *MockCollectionMockRecorder) DropAllIndexes() *gomock.Call

DropAllIndexes indicates an expected call of DropAllIndexes.

func (*MockCollectionMockRecorder) DropCollection

func (mr *MockCollectionMockRecorder) DropCollection() *gomock.Call

DropCollection indicates an expected call of DropCollection.

func (*MockCollectionMockRecorder) DropIndex

func (mr *MockCollectionMockRecorder) DropIndex(arg0 ...interface{}) *gomock.Call

DropIndex indicates an expected call of DropIndex.

func (*MockCollectionMockRecorder) DropIndexName

func (mr *MockCollectionMockRecorder) DropIndexName(arg0 interface{}) *gomock.Call

DropIndexName indicates an expected call of DropIndexName.

func (*MockCollectionMockRecorder) EnsureIndex

func (mr *MockCollectionMockRecorder) EnsureIndex(arg0 interface{}) *gomock.Call

EnsureIndex indicates an expected call of EnsureIndex.

func (*MockCollectionMockRecorder) EnsureIndexKey

func (mr *MockCollectionMockRecorder) EnsureIndexKey(arg0 ...interface{}) *gomock.Call

EnsureIndexKey indicates an expected call of EnsureIndexKey.

func (*MockCollectionMockRecorder) Find

func (mr *MockCollectionMockRecorder) Find(arg0 interface{}) *gomock.Call

Find indicates an expected call of Find.

func (*MockCollectionMockRecorder) FindId

func (mr *MockCollectionMockRecorder) FindId(arg0 interface{}) *gomock.Call

FindId indicates an expected call of FindId.

func (*MockCollectionMockRecorder) Indexes

func (mr *MockCollectionMockRecorder) Indexes() *gomock.Call

Indexes indicates an expected call of Indexes.

func (*MockCollectionMockRecorder) Insert

func (mr *MockCollectionMockRecorder) Insert(arg0 ...interface{}) *gomock.Call

Insert indicates an expected call of Insert.

func (*MockCollectionMockRecorder) Remove

func (mr *MockCollectionMockRecorder) Remove(arg0 interface{}) *gomock.Call

Remove indicates an expected call of Remove.

func (*MockCollectionMockRecorder) RemoveAll

func (mr *MockCollectionMockRecorder) RemoveAll(arg0 interface{}) *gomock.Call

RemoveAll indicates an expected call of RemoveAll.

func (*MockCollectionMockRecorder) RemoveId

func (mr *MockCollectionMockRecorder) RemoveId(arg0 interface{}) *gomock.Call

RemoveId indicates an expected call of RemoveId.

func (*MockCollectionMockRecorder) Repair

func (mr *MockCollectionMockRecorder) Repair() *gomock.Call

Repair indicates an expected call of Repair.

func (*MockCollectionMockRecorder) Update

func (mr *MockCollectionMockRecorder) Update(arg0, arg1 interface{}) *gomock.Call

Update indicates an expected call of Update.

func (*MockCollectionMockRecorder) UpdateAll

func (mr *MockCollectionMockRecorder) UpdateAll(arg0, arg1 interface{}) *gomock.Call

UpdateAll indicates an expected call of UpdateAll.

func (*MockCollectionMockRecorder) UpdateId

func (mr *MockCollectionMockRecorder) UpdateId(arg0, arg1 interface{}) *gomock.Call

UpdateId indicates an expected call of UpdateId.

func (*MockCollectionMockRecorder) Upsert

func (mr *MockCollectionMockRecorder) Upsert(arg0, arg1 interface{}) *gomock.Call

Upsert indicates an expected call of Upsert.

func (*MockCollectionMockRecorder) UpsertId

func (mr *MockCollectionMockRecorder) UpsertId(arg0, arg1 interface{}) *gomock.Call

UpsertId indicates an expected call of UpsertId.

type MockDatabase

type MockDatabase struct {
	// contains filtered or unexported fields
}

MockDatabase is a mock of Database interface.

func NewMockDatabase

func NewMockDatabase(ctrl *gomock.Controller) *MockDatabase

NewMockDatabase creates a new mock instance.

func (*MockDatabase) AddUser

func (m *MockDatabase) AddUser(arg0, arg1 string, arg2 bool) error

AddUser mocks base method.

func (*MockDatabase) C

func (m *MockDatabase) C(arg0 string) mgoi.Collection

C mocks base method.

func (*MockDatabase) CollectionNames

func (m *MockDatabase) CollectionNames() ([]string, error)

CollectionNames mocks base method.

func (*MockDatabase) CreateView

func (m *MockDatabase) CreateView(arg0, arg1 string, arg2 interface{}, arg3 *mgo.Collation) error

CreateView mocks base method.

func (*MockDatabase) DropDatabase

func (m *MockDatabase) DropDatabase() error

DropDatabase mocks base method.

func (*MockDatabase) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockDatabase) FindRef

func (m *MockDatabase) FindRef(arg0 *mgo.DBRef) mgoi.Query

FindRef mocks base method.

func (*MockDatabase) Login

func (m *MockDatabase) Login(arg0, arg1 string) error

Login mocks base method.

func (*MockDatabase) Logout

func (m *MockDatabase) Logout()

Logout mocks base method.

func (*MockDatabase) RemoveUser

func (m *MockDatabase) RemoveUser(arg0 string) error

RemoveUser mocks base method.

func (*MockDatabase) Run

func (m *MockDatabase) Run(arg0, arg1 interface{}) error

Run mocks base method.

func (*MockDatabase) UpsertUser

func (m *MockDatabase) UpsertUser(arg0 *mgo.User) error

UpsertUser mocks base method.

type MockDatabaseMockRecorder

type MockDatabaseMockRecorder struct {
	// contains filtered or unexported fields
}

MockDatabaseMockRecorder is the mock recorder for MockDatabase.

func (*MockDatabaseMockRecorder) AddUser

func (mr *MockDatabaseMockRecorder) AddUser(arg0, arg1, arg2 interface{}) *gomock.Call

AddUser indicates an expected call of AddUser.

func (*MockDatabaseMockRecorder) C

func (mr *MockDatabaseMockRecorder) C(arg0 interface{}) *gomock.Call

C indicates an expected call of C.

func (*MockDatabaseMockRecorder) CollectionNames

func (mr *MockDatabaseMockRecorder) CollectionNames() *gomock.Call

CollectionNames indicates an expected call of CollectionNames.

func (*MockDatabaseMockRecorder) CreateView

func (mr *MockDatabaseMockRecorder) CreateView(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

CreateView indicates an expected call of CreateView.

func (*MockDatabaseMockRecorder) DropDatabase

func (mr *MockDatabaseMockRecorder) DropDatabase() *gomock.Call

DropDatabase indicates an expected call of DropDatabase.

func (*MockDatabaseMockRecorder) FindRef

func (mr *MockDatabaseMockRecorder) FindRef(arg0 interface{}) *gomock.Call

FindRef indicates an expected call of FindRef.

func (*MockDatabaseMockRecorder) Login

func (mr *MockDatabaseMockRecorder) Login(arg0, arg1 interface{}) *gomock.Call

Login indicates an expected call of Login.

func (*MockDatabaseMockRecorder) Logout

func (mr *MockDatabaseMockRecorder) Logout() *gomock.Call

Logout indicates an expected call of Logout.

func (*MockDatabaseMockRecorder) RemoveUser

func (mr *MockDatabaseMockRecorder) RemoveUser(arg0 interface{}) *gomock.Call

RemoveUser indicates an expected call of RemoveUser.

func (*MockDatabaseMockRecorder) Run

func (mr *MockDatabaseMockRecorder) Run(arg0, arg1 interface{}) *gomock.Call

Run indicates an expected call of Run.

func (*MockDatabaseMockRecorder) UpsertUser

func (mr *MockDatabaseMockRecorder) UpsertUser(arg0 interface{}) *gomock.Call

UpsertUser indicates an expected call of UpsertUser.

type MockIter

type MockIter struct {
	// contains filtered or unexported fields
}

MockIter is a mock of Iter interface.

func NewMockIter

func NewMockIter(ctrl *gomock.Controller) *MockIter

NewMockIter creates a new mock instance.

func (*MockIter) All

func (m *MockIter) All(arg0 interface{}) error

All mocks base method.

func (*MockIter) Close

func (m *MockIter) Close() error

Close mocks base method.

func (*MockIter) Done

func (m *MockIter) Done() bool

Done mocks base method.

func (*MockIter) EXPECT

func (m *MockIter) EXPECT() *MockIterMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockIter) Err

func (m *MockIter) Err() error

Err mocks base method.

func (*MockIter) For

func (m *MockIter) For(arg0 interface{}, arg1 func() error) error

For mocks base method.

func (*MockIter) Next

func (m *MockIter) Next(arg0 interface{}) bool

Next mocks base method.

func (*MockIter) State

func (m *MockIter) State() (int64, []bson.Raw)

State mocks base method.

func (*MockIter) Timeout

func (m *MockIter) Timeout() bool

Timeout mocks base method.

type MockIterMockRecorder

type MockIterMockRecorder struct {
	// contains filtered or unexported fields
}

MockIterMockRecorder is the mock recorder for MockIter.

func (*MockIterMockRecorder) All

func (mr *MockIterMockRecorder) All(arg0 interface{}) *gomock.Call

All indicates an expected call of All.

func (*MockIterMockRecorder) Close

func (mr *MockIterMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockIterMockRecorder) Done

func (mr *MockIterMockRecorder) Done() *gomock.Call

Done indicates an expected call of Done.

func (*MockIterMockRecorder) Err

func (mr *MockIterMockRecorder) Err() *gomock.Call

Err indicates an expected call of Err.

func (*MockIterMockRecorder) For

func (mr *MockIterMockRecorder) For(arg0, arg1 interface{}) *gomock.Call

For indicates an expected call of For.

func (*MockIterMockRecorder) Next

func (mr *MockIterMockRecorder) Next(arg0 interface{}) *gomock.Call

Next indicates an expected call of Next.

func (*MockIterMockRecorder) State

func (mr *MockIterMockRecorder) State() *gomock.Call

State indicates an expected call of State.

func (*MockIterMockRecorder) Timeout

func (mr *MockIterMockRecorder) Timeout() *gomock.Call

Timeout indicates an expected call of Timeout.

type MockQuery

type MockQuery struct {
	// contains filtered or unexported fields
}

MockQuery is a mock of Query interface.

func NewMockQuery

func NewMockQuery(ctrl *gomock.Controller) *MockQuery

NewMockQuery creates a new mock instance.

func (*MockQuery) All

func (m *MockQuery) All(arg0 interface{}) error

All mocks base method.

func (*MockQuery) Apply

func (m *MockQuery) Apply(arg0 mgo.Change, arg1 interface{}) (*mgo.ChangeInfo, error)

Apply mocks base method.

func (*MockQuery) Batch

func (m *MockQuery) Batch(arg0 int) mgoi.Query

Batch mocks base method.

func (*MockQuery) Collation

func (m *MockQuery) Collation(arg0 *mgo.Collation) mgoi.Query

Collation mocks base method.

func (*MockQuery) Comment

func (m *MockQuery) Comment(arg0 string) mgoi.Query

Comment mocks base method.

func (*MockQuery) Count

func (m *MockQuery) Count() (int, error)

Count mocks base method.

func (*MockQuery) Distinct

func (m *MockQuery) Distinct(arg0 string, arg1 interface{}) error

Distinct mocks base method.

func (*MockQuery) EXPECT

func (m *MockQuery) EXPECT() *MockQueryMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockQuery) Explain

func (m *MockQuery) Explain(arg0 interface{}) error

Explain mocks base method.

func (*MockQuery) For

func (m *MockQuery) For(arg0 interface{}, arg1 func() error) error

For mocks base method.

func (*MockQuery) Hint

func (m *MockQuery) Hint(arg0 ...string) mgoi.Query

Hint mocks base method.

func (*MockQuery) Iter

func (m *MockQuery) Iter() mgoi.Iter

Iter mocks base method.

func (*MockQuery) Limit

func (m *MockQuery) Limit(arg0 int) mgoi.Query

Limit mocks base method.

func (*MockQuery) LogReplay

func (m *MockQuery) LogReplay() mgoi.Query

LogReplay mocks base method.

func (*MockQuery) MapReduce

func (m *MockQuery) MapReduce(arg0 *mgo.MapReduce, arg1 interface{}) (*mgo.MapReduceInfo, error)

MapReduce mocks base method.

func (*MockQuery) One

func (m *MockQuery) One(arg0 interface{}) error

One mocks base method.

func (*MockQuery) Prefetch

func (m *MockQuery) Prefetch(arg0 float64) mgoi.Query

Prefetch mocks base method.

func (*MockQuery) Select

func (m *MockQuery) Select(arg0 interface{}) mgoi.Query

Select mocks base method.

func (*MockQuery) SetMaxScan

func (m *MockQuery) SetMaxScan(arg0 int) mgoi.Query

SetMaxScan mocks base method.

func (*MockQuery) SetMaxTime

func (m *MockQuery) SetMaxTime(arg0 time.Duration) mgoi.Query

SetMaxTime mocks base method.

func (*MockQuery) Skip

func (m *MockQuery) Skip(arg0 int) mgoi.Query

Skip mocks base method.

func (*MockQuery) Snapshot

func (m *MockQuery) Snapshot() mgoi.Query

Snapshot mocks base method.

func (*MockQuery) Sort

func (m *MockQuery) Sort(arg0 ...string) mgoi.Query

Sort mocks base method.

func (*MockQuery) Tail

func (m *MockQuery) Tail(arg0 time.Duration) mgoi.Iter

Tail mocks base method.

type MockQueryMockRecorder

type MockQueryMockRecorder struct {
	// contains filtered or unexported fields
}

MockQueryMockRecorder is the mock recorder for MockQuery.

func (*MockQueryMockRecorder) All

func (mr *MockQueryMockRecorder) All(arg0 interface{}) *gomock.Call

All indicates an expected call of All.

func (*MockQueryMockRecorder) Apply

func (mr *MockQueryMockRecorder) Apply(arg0, arg1 interface{}) *gomock.Call

Apply indicates an expected call of Apply.

func (*MockQueryMockRecorder) Batch

func (mr *MockQueryMockRecorder) Batch(arg0 interface{}) *gomock.Call

Batch indicates an expected call of Batch.

func (*MockQueryMockRecorder) Collation

func (mr *MockQueryMockRecorder) Collation(arg0 interface{}) *gomock.Call

Collation indicates an expected call of Collation.

func (*MockQueryMockRecorder) Comment

func (mr *MockQueryMockRecorder) Comment(arg0 interface{}) *gomock.Call

Comment indicates an expected call of Comment.

func (*MockQueryMockRecorder) Count

func (mr *MockQueryMockRecorder) Count() *gomock.Call

Count indicates an expected call of Count.

func (*MockQueryMockRecorder) Distinct

func (mr *MockQueryMockRecorder) Distinct(arg0, arg1 interface{}) *gomock.Call

Distinct indicates an expected call of Distinct.

func (*MockQueryMockRecorder) Explain

func (mr *MockQueryMockRecorder) Explain(arg0 interface{}) *gomock.Call

Explain indicates an expected call of Explain.

func (*MockQueryMockRecorder) For

func (mr *MockQueryMockRecorder) For(arg0, arg1 interface{}) *gomock.Call

For indicates an expected call of For.

func (*MockQueryMockRecorder) Hint

func (mr *MockQueryMockRecorder) Hint(arg0 ...interface{}) *gomock.Call

Hint indicates an expected call of Hint.

func (*MockQueryMockRecorder) Iter

func (mr *MockQueryMockRecorder) Iter() *gomock.Call

Iter indicates an expected call of Iter.

func (*MockQueryMockRecorder) Limit

func (mr *MockQueryMockRecorder) Limit(arg0 interface{}) *gomock.Call

Limit indicates an expected call of Limit.

func (*MockQueryMockRecorder) LogReplay

func (mr *MockQueryMockRecorder) LogReplay() *gomock.Call

LogReplay indicates an expected call of LogReplay.

func (*MockQueryMockRecorder) MapReduce

func (mr *MockQueryMockRecorder) MapReduce(arg0, arg1 interface{}) *gomock.Call

MapReduce indicates an expected call of MapReduce.

func (*MockQueryMockRecorder) One

func (mr *MockQueryMockRecorder) One(arg0 interface{}) *gomock.Call

One indicates an expected call of One.

func (*MockQueryMockRecorder) Prefetch

func (mr *MockQueryMockRecorder) Prefetch(arg0 interface{}) *gomock.Call

Prefetch indicates an expected call of Prefetch.

func (*MockQueryMockRecorder) Select

func (mr *MockQueryMockRecorder) Select(arg0 interface{}) *gomock.Call

Select indicates an expected call of Select.

func (*MockQueryMockRecorder) SetMaxScan

func (mr *MockQueryMockRecorder) SetMaxScan(arg0 interface{}) *gomock.Call

SetMaxScan indicates an expected call of SetMaxScan.

func (*MockQueryMockRecorder) SetMaxTime

func (mr *MockQueryMockRecorder) SetMaxTime(arg0 interface{}) *gomock.Call

SetMaxTime indicates an expected call of SetMaxTime.

func (*MockQueryMockRecorder) Skip

func (mr *MockQueryMockRecorder) Skip(arg0 interface{}) *gomock.Call

Skip indicates an expected call of Skip.

func (*MockQueryMockRecorder) Snapshot

func (mr *MockQueryMockRecorder) Snapshot() *gomock.Call

Snapshot indicates an expected call of Snapshot.

func (*MockQueryMockRecorder) Sort

func (mr *MockQueryMockRecorder) Sort(arg0 ...interface{}) *gomock.Call

Sort indicates an expected call of Sort.

func (*MockQueryMockRecorder) Tail

func (mr *MockQueryMockRecorder) Tail(arg0 interface{}) *gomock.Call

Tail indicates an expected call of Tail.

type MockSession

type MockSession struct {
	// contains filtered or unexported fields
}

MockSession is a mock of Session interface.

func NewMockSession

func NewMockSession(ctrl *gomock.Controller) *MockSession

NewMockSession creates a new mock instance.

func (*MockSession) BuildInfo

func (m *MockSession) BuildInfo() (mgo.BuildInfo, error)

BuildInfo mocks base method.

func (*MockSession) Clone

func (m *MockSession) Clone() mgoi.Session

Clone mocks base method.

func (*MockSession) Close

func (m *MockSession) Close()

Close mocks base method.

func (*MockSession) Copy

func (m *MockSession) Copy() mgoi.Session

Copy mocks base method.

func (*MockSession) DB

func (m *MockSession) DB(arg0 string) mgoi.Database

DB mocks base method.

func (*MockSession) DatabaseNames

func (m *MockSession) DatabaseNames() ([]string, error)

DatabaseNames mocks base method.

func (*MockSession) EXPECT

func (m *MockSession) EXPECT() *MockSessionMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockSession) EnsureSafe

func (m *MockSession) EnsureSafe(arg0 *mgo.Safe)

EnsureSafe mocks base method.

func (*MockSession) FindRef

func (m *MockSession) FindRef(arg0 *mgo.DBRef) mgoi.Query

FindRef mocks base method.

func (*MockSession) Fsync

func (m *MockSession) Fsync(arg0 bool) error

Fsync mocks base method.

func (*MockSession) FsyncLock

func (m *MockSession) FsyncLock() error

FsyncLock mocks base method.

func (*MockSession) FsyncUnlock

func (m *MockSession) FsyncUnlock() error

FsyncUnlock mocks base method.

func (*MockSession) LiveServers

func (m *MockSession) LiveServers() []string

LiveServers mocks base method.

func (*MockSession) Login

func (m *MockSession) Login(arg0 *mgo.Credential) error

Login mocks base method.

func (*MockSession) LogoutAll

func (m *MockSession) LogoutAll()

LogoutAll mocks base method.

func (*MockSession) Mode

func (m *MockSession) Mode() mgo.Mode

Mode mocks base method.

func (*MockSession) New

func (m *MockSession) New() mgoi.Session

New mocks base method.

func (*MockSession) Ping

func (m *MockSession) Ping() error

Ping mocks base method.

func (*MockSession) Refresh

func (m *MockSession) Refresh()

Refresh mocks base method.

func (*MockSession) ResetIndexCache

func (m *MockSession) ResetIndexCache()

ResetIndexCache mocks base method.

func (*MockSession) Run

func (m *MockSession) Run(arg0, arg1 interface{}) error

Run mocks base method.

func (*MockSession) Safe

func (m *MockSession) Safe() *mgo.Safe

Safe mocks base method.

func (*MockSession) SelectServers

func (m *MockSession) SelectServers(arg0 ...bson.D)

SelectServers mocks base method.

func (*MockSession) SetBatch

func (m *MockSession) SetBatch(arg0 int)

SetBatch mocks base method.

func (*MockSession) SetBypassValidation

func (m *MockSession) SetBypassValidation(arg0 bool)

SetBypassValidation mocks base method.

func (*MockSession) SetCursorTimeout

func (m *MockSession) SetCursorTimeout(arg0 time.Duration)

SetCursorTimeout mocks base method.

func (*MockSession) SetMode

func (m *MockSession) SetMode(arg0 mgo.Mode, arg1 bool)

SetMode mocks base method.

func (*MockSession) SetPoolLimit

func (m *MockSession) SetPoolLimit(arg0 int)

SetPoolLimit mocks base method.

func (*MockSession) SetPoolTimeout

func (m *MockSession) SetPoolTimeout(arg0 time.Duration)

SetPoolTimeout mocks base method.

func (*MockSession) SetPrefetch

func (m *MockSession) SetPrefetch(arg0 float64)

SetPrefetch mocks base method.

func (*MockSession) SetSafe

func (m *MockSession) SetSafe(arg0 *mgo.Safe)

SetSafe mocks base method.

func (*MockSession) SetSocketTimeout

func (m *MockSession) SetSocketTimeout(arg0 time.Duration)

SetSocketTimeout mocks base method.

func (*MockSession) SetSyncTimeout

func (m *MockSession) SetSyncTimeout(arg0 time.Duration)

SetSyncTimeout mocks base method.

type MockSessionMockRecorder

type MockSessionMockRecorder struct {
	// contains filtered or unexported fields
}

MockSessionMockRecorder is the mock recorder for MockSession.

func (*MockSessionMockRecorder) BuildInfo

func (mr *MockSessionMockRecorder) BuildInfo() *gomock.Call

BuildInfo indicates an expected call of BuildInfo.

func (*MockSessionMockRecorder) Clone

func (mr *MockSessionMockRecorder) Clone() *gomock.Call

Clone indicates an expected call of Clone.

func (*MockSessionMockRecorder) Close

func (mr *MockSessionMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockSessionMockRecorder) Copy

func (mr *MockSessionMockRecorder) Copy() *gomock.Call

Copy indicates an expected call of Copy.

func (*MockSessionMockRecorder) DB

func (mr *MockSessionMockRecorder) DB(arg0 interface{}) *gomock.Call

DB indicates an expected call of DB.

func (*MockSessionMockRecorder) DatabaseNames

func (mr *MockSessionMockRecorder) DatabaseNames() *gomock.Call

DatabaseNames indicates an expected call of DatabaseNames.

func (*MockSessionMockRecorder) EnsureSafe

func (mr *MockSessionMockRecorder) EnsureSafe(arg0 interface{}) *gomock.Call

EnsureSafe indicates an expected call of EnsureSafe.

func (*MockSessionMockRecorder) FindRef

func (mr *MockSessionMockRecorder) FindRef(arg0 interface{}) *gomock.Call

FindRef indicates an expected call of FindRef.

func (*MockSessionMockRecorder) Fsync

func (mr *MockSessionMockRecorder) Fsync(arg0 interface{}) *gomock.Call

Fsync indicates an expected call of Fsync.

func (*MockSessionMockRecorder) FsyncLock

func (mr *MockSessionMockRecorder) FsyncLock() *gomock.Call

FsyncLock indicates an expected call of FsyncLock.

func (*MockSessionMockRecorder) FsyncUnlock

func (mr *MockSessionMockRecorder) FsyncUnlock() *gomock.Call

FsyncUnlock indicates an expected call of FsyncUnlock.

func (*MockSessionMockRecorder) LiveServers

func (mr *MockSessionMockRecorder) LiveServers() *gomock.Call

LiveServers indicates an expected call of LiveServers.

func (*MockSessionMockRecorder) Login

func (mr *MockSessionMockRecorder) Login(arg0 interface{}) *gomock.Call

Login indicates an expected call of Login.

func (*MockSessionMockRecorder) LogoutAll

func (mr *MockSessionMockRecorder) LogoutAll() *gomock.Call

LogoutAll indicates an expected call of LogoutAll.

func (*MockSessionMockRecorder) Mode

func (mr *MockSessionMockRecorder) Mode() *gomock.Call

Mode indicates an expected call of Mode.

func (*MockSessionMockRecorder) New

func (mr *MockSessionMockRecorder) New() *gomock.Call

New indicates an expected call of New.

func (*MockSessionMockRecorder) Ping

func (mr *MockSessionMockRecorder) Ping() *gomock.Call

Ping indicates an expected call of Ping.

func (*MockSessionMockRecorder) Refresh

func (mr *MockSessionMockRecorder) Refresh() *gomock.Call

Refresh indicates an expected call of Refresh.

func (*MockSessionMockRecorder) ResetIndexCache

func (mr *MockSessionMockRecorder) ResetIndexCache() *gomock.Call

ResetIndexCache indicates an expected call of ResetIndexCache.

func (*MockSessionMockRecorder) Run

func (mr *MockSessionMockRecorder) Run(arg0, arg1 interface{}) *gomock.Call

Run indicates an expected call of Run.

func (*MockSessionMockRecorder) Safe

func (mr *MockSessionMockRecorder) Safe() *gomock.Call

Safe indicates an expected call of Safe.

func (*MockSessionMockRecorder) SelectServers

func (mr *MockSessionMockRecorder) SelectServers(arg0 ...interface{}) *gomock.Call

SelectServers indicates an expected call of SelectServers.

func (*MockSessionMockRecorder) SetBatch

func (mr *MockSessionMockRecorder) SetBatch(arg0 interface{}) *gomock.Call

SetBatch indicates an expected call of SetBatch.

func (*MockSessionMockRecorder) SetBypassValidation

func (mr *MockSessionMockRecorder) SetBypassValidation(arg0 interface{}) *gomock.Call

SetBypassValidation indicates an expected call of SetBypassValidation.

func (*MockSessionMockRecorder) SetCursorTimeout

func (mr *MockSessionMockRecorder) SetCursorTimeout(arg0 interface{}) *gomock.Call

SetCursorTimeout indicates an expected call of SetCursorTimeout.

func (*MockSessionMockRecorder) SetMode

func (mr *MockSessionMockRecorder) SetMode(arg0, arg1 interface{}) *gomock.Call

SetMode indicates an expected call of SetMode.

func (*MockSessionMockRecorder) SetPoolLimit

func (mr *MockSessionMockRecorder) SetPoolLimit(arg0 interface{}) *gomock.Call

SetPoolLimit indicates an expected call of SetPoolLimit.

func (*MockSessionMockRecorder) SetPoolTimeout

func (mr *MockSessionMockRecorder) SetPoolTimeout(arg0 interface{}) *gomock.Call

SetPoolTimeout indicates an expected call of SetPoolTimeout.

func (*MockSessionMockRecorder) SetPrefetch

func (mr *MockSessionMockRecorder) SetPrefetch(arg0 interface{}) *gomock.Call

SetPrefetch indicates an expected call of SetPrefetch.

func (*MockSessionMockRecorder) SetSafe

func (mr *MockSessionMockRecorder) SetSafe(arg0 interface{}) *gomock.Call

SetSafe indicates an expected call of SetSafe.

func (*MockSessionMockRecorder) SetSocketTimeout

func (mr *MockSessionMockRecorder) SetSocketTimeout(arg0 interface{}) *gomock.Call

SetSocketTimeout indicates an expected call of SetSocketTimeout.

func (*MockSessionMockRecorder) SetSyncTimeout

func (mr *MockSessionMockRecorder) SetSyncTimeout(arg0 interface{}) *gomock.Call

SetSyncTimeout indicates an expected call of SetSyncTimeout.

Jump to

Keyboard shortcuts

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