Documentation
¶
Overview ¶
Package mgoimock is a generated GoMock package.
Index ¶
- type MockBulk
- func (m *MockBulk) EXPECT() *MockBulkMockRecorder
- func (m *MockBulk) Insert(arg0 ...interface{})
- func (m *MockBulk) Remove(arg0 ...interface{})
- func (m *MockBulk) RemoveAll(arg0 ...interface{})
- func (m *MockBulk) Run() (*mgo.BulkResult, error)
- func (m *MockBulk) Unordered()
- func (m *MockBulk) Update(arg0 ...interface{})
- func (m *MockBulk) UpdateAll(arg0 ...interface{})
- func (m *MockBulk) Upsert(arg0 ...interface{})
- type MockBulkMockRecorder
- func (mr *MockBulkMockRecorder) Insert(arg0 ...interface{}) *gomock.Call
- func (mr *MockBulkMockRecorder) Remove(arg0 ...interface{}) *gomock.Call
- func (mr *MockBulkMockRecorder) RemoveAll(arg0 ...interface{}) *gomock.Call
- func (mr *MockBulkMockRecorder) Run() *gomock.Call
- func (mr *MockBulkMockRecorder) Unordered() *gomock.Call
- func (mr *MockBulkMockRecorder) Update(arg0 ...interface{}) *gomock.Call
- func (mr *MockBulkMockRecorder) UpdateAll(arg0 ...interface{}) *gomock.Call
- func (mr *MockBulkMockRecorder) Upsert(arg0 ...interface{}) *gomock.Call
- type MockCollection
- func (m *MockCollection) Bulk() mgoi.Bulk
- func (m *MockCollection) Count() (int, error)
- func (m *MockCollection) Create(arg0 *mgo.CollectionInfo) error
- func (m *MockCollection) DropAllIndexes() error
- func (m *MockCollection) DropCollection() error
- func (m *MockCollection) DropIndex(arg0 ...string) error
- func (m *MockCollection) DropIndexName(arg0 string) error
- func (m *MockCollection) EXPECT() *MockCollectionMockRecorder
- func (m *MockCollection) EnsureIndex(arg0 mgo.Index) error
- func (m *MockCollection) EnsureIndexKey(arg0 ...string) error
- func (m *MockCollection) Find(arg0 interface{}) mgoi.Query
- func (m *MockCollection) FindId(arg0 interface{}) mgoi.Query
- func (m *MockCollection) Indexes() ([]mgo.Index, error)
- func (m *MockCollection) Insert(arg0 ...interface{}) error
- func (m *MockCollection) Remove(arg0 interface{}) error
- func (m *MockCollection) RemoveAll(arg0 interface{}) (*mgo.ChangeInfo, error)
- func (m *MockCollection) RemoveId(arg0 interface{}) error
- func (m *MockCollection) Repair() mgoi.Iter
- func (m *MockCollection) Update(arg0, arg1 interface{}) error
- func (m *MockCollection) UpdateAll(arg0, arg1 interface{}) (*mgo.ChangeInfo, error)
- func (m *MockCollection) UpdateId(arg0, arg1 interface{}) error
- func (m *MockCollection) Upsert(arg0, arg1 interface{}) (*mgo.ChangeInfo, error)
- func (m *MockCollection) UpsertId(arg0, arg1 interface{}) (*mgo.ChangeInfo, error)
- type MockCollectionMockRecorder
- func (mr *MockCollectionMockRecorder) Bulk() *gomock.Call
- func (mr *MockCollectionMockRecorder) Count() *gomock.Call
- func (mr *MockCollectionMockRecorder) Create(arg0 interface{}) *gomock.Call
- func (mr *MockCollectionMockRecorder) DropAllIndexes() *gomock.Call
- func (mr *MockCollectionMockRecorder) DropCollection() *gomock.Call
- func (mr *MockCollectionMockRecorder) DropIndex(arg0 ...interface{}) *gomock.Call
- func (mr *MockCollectionMockRecorder) DropIndexName(arg0 interface{}) *gomock.Call
- func (mr *MockCollectionMockRecorder) EnsureIndex(arg0 interface{}) *gomock.Call
- func (mr *MockCollectionMockRecorder) EnsureIndexKey(arg0 ...interface{}) *gomock.Call
- func (mr *MockCollectionMockRecorder) Find(arg0 interface{}) *gomock.Call
- func (mr *MockCollectionMockRecorder) FindId(arg0 interface{}) *gomock.Call
- func (mr *MockCollectionMockRecorder) Indexes() *gomock.Call
- func (mr *MockCollectionMockRecorder) Insert(arg0 ...interface{}) *gomock.Call
- func (mr *MockCollectionMockRecorder) Remove(arg0 interface{}) *gomock.Call
- func (mr *MockCollectionMockRecorder) RemoveAll(arg0 interface{}) *gomock.Call
- func (mr *MockCollectionMockRecorder) RemoveId(arg0 interface{}) *gomock.Call
- func (mr *MockCollectionMockRecorder) Repair() *gomock.Call
- func (mr *MockCollectionMockRecorder) Update(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockCollectionMockRecorder) UpdateAll(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockCollectionMockRecorder) UpdateId(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockCollectionMockRecorder) Upsert(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockCollectionMockRecorder) UpsertId(arg0, arg1 interface{}) *gomock.Call
- type MockDatabase
- func (m *MockDatabase) AddUser(arg0, arg1 string, arg2 bool) error
- func (m *MockDatabase) C(arg0 string) mgoi.Collection
- func (m *MockDatabase) CollectionNames() ([]string, error)
- func (m *MockDatabase) CreateView(arg0, arg1 string, arg2 interface{}, arg3 *mgo.Collation) error
- func (m *MockDatabase) DropDatabase() error
- func (m *MockDatabase) EXPECT() *MockDatabaseMockRecorder
- func (m *MockDatabase) FindRef(arg0 *mgo.DBRef) mgoi.Query
- func (m *MockDatabase) Login(arg0, arg1 string) error
- func (m *MockDatabase) Logout()
- func (m *MockDatabase) RemoveUser(arg0 string) error
- func (m *MockDatabase) Run(arg0, arg1 interface{}) error
- func (m *MockDatabase) UpsertUser(arg0 *mgo.User) error
- type MockDatabaseMockRecorder
- func (mr *MockDatabaseMockRecorder) AddUser(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) C(arg0 interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) CollectionNames() *gomock.Call
- func (mr *MockDatabaseMockRecorder) CreateView(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) DropDatabase() *gomock.Call
- func (mr *MockDatabaseMockRecorder) FindRef(arg0 interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) Login(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) Logout() *gomock.Call
- func (mr *MockDatabaseMockRecorder) RemoveUser(arg0 interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) Run(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) UpsertUser(arg0 interface{}) *gomock.Call
- type MockIter
- func (m *MockIter) All(arg0 interface{}) error
- func (m *MockIter) Close() error
- func (m *MockIter) Done() bool
- func (m *MockIter) EXPECT() *MockIterMockRecorder
- func (m *MockIter) Err() error
- func (m *MockIter) For(arg0 interface{}, arg1 func() error) error
- func (m *MockIter) Next(arg0 interface{}) bool
- func (m *MockIter) State() (int64, []bson.Raw)
- func (m *MockIter) Timeout() bool
- type MockIterMockRecorder
- func (mr *MockIterMockRecorder) All(arg0 interface{}) *gomock.Call
- func (mr *MockIterMockRecorder) Close() *gomock.Call
- func (mr *MockIterMockRecorder) Done() *gomock.Call
- func (mr *MockIterMockRecorder) Err() *gomock.Call
- func (mr *MockIterMockRecorder) For(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockIterMockRecorder) Next(arg0 interface{}) *gomock.Call
- func (mr *MockIterMockRecorder) State() *gomock.Call
- func (mr *MockIterMockRecorder) Timeout() *gomock.Call
- type MockQuery
- func (m *MockQuery) All(arg0 interface{}) error
- func (m *MockQuery) Apply(arg0 mgo.Change, arg1 interface{}) (*mgo.ChangeInfo, error)
- func (m *MockQuery) Batch(arg0 int) mgoi.Query
- func (m *MockQuery) Collation(arg0 *mgo.Collation) mgoi.Query
- func (m *MockQuery) Comment(arg0 string) mgoi.Query
- func (m *MockQuery) Count() (int, error)
- func (m *MockQuery) Distinct(arg0 string, arg1 interface{}) error
- func (m *MockQuery) EXPECT() *MockQueryMockRecorder
- func (m *MockQuery) Explain(arg0 interface{}) error
- func (m *MockQuery) For(arg0 interface{}, arg1 func() error) error
- func (m *MockQuery) Hint(arg0 ...string) mgoi.Query
- func (m *MockQuery) Iter() mgoi.Iter
- func (m *MockQuery) Limit(arg0 int) mgoi.Query
- func (m *MockQuery) LogReplay() mgoi.Query
- func (m *MockQuery) MapReduce(arg0 *mgo.MapReduce, arg1 interface{}) (*mgo.MapReduceInfo, error)
- func (m *MockQuery) One(arg0 interface{}) error
- func (m *MockQuery) Prefetch(arg0 float64) mgoi.Query
- func (m *MockQuery) Select(arg0 interface{}) mgoi.Query
- func (m *MockQuery) SetMaxScan(arg0 int) mgoi.Query
- func (m *MockQuery) SetMaxTime(arg0 time.Duration) mgoi.Query
- func (m *MockQuery) Skip(arg0 int) mgoi.Query
- func (m *MockQuery) Snapshot() mgoi.Query
- func (m *MockQuery) Sort(arg0 ...string) mgoi.Query
- func (m *MockQuery) Tail(arg0 time.Duration) mgoi.Iter
- type MockQueryMockRecorder
- func (mr *MockQueryMockRecorder) All(arg0 interface{}) *gomock.Call
- func (mr *MockQueryMockRecorder) Apply(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockQueryMockRecorder) Batch(arg0 interface{}) *gomock.Call
- func (mr *MockQueryMockRecorder) Collation(arg0 interface{}) *gomock.Call
- func (mr *MockQueryMockRecorder) Comment(arg0 interface{}) *gomock.Call
- func (mr *MockQueryMockRecorder) Count() *gomock.Call
- func (mr *MockQueryMockRecorder) Distinct(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockQueryMockRecorder) Explain(arg0 interface{}) *gomock.Call
- func (mr *MockQueryMockRecorder) For(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockQueryMockRecorder) Hint(arg0 ...interface{}) *gomock.Call
- func (mr *MockQueryMockRecorder) Iter() *gomock.Call
- func (mr *MockQueryMockRecorder) Limit(arg0 interface{}) *gomock.Call
- func (mr *MockQueryMockRecorder) LogReplay() *gomock.Call
- func (mr *MockQueryMockRecorder) MapReduce(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockQueryMockRecorder) One(arg0 interface{}) *gomock.Call
- func (mr *MockQueryMockRecorder) Prefetch(arg0 interface{}) *gomock.Call
- func (mr *MockQueryMockRecorder) Select(arg0 interface{}) *gomock.Call
- func (mr *MockQueryMockRecorder) SetMaxScan(arg0 interface{}) *gomock.Call
- func (mr *MockQueryMockRecorder) SetMaxTime(arg0 interface{}) *gomock.Call
- func (mr *MockQueryMockRecorder) Skip(arg0 interface{}) *gomock.Call
- func (mr *MockQueryMockRecorder) Snapshot() *gomock.Call
- func (mr *MockQueryMockRecorder) Sort(arg0 ...interface{}) *gomock.Call
- func (mr *MockQueryMockRecorder) Tail(arg0 interface{}) *gomock.Call
- type MockSession
- func (m *MockSession) BuildInfo() (mgo.BuildInfo, error)
- func (m *MockSession) Clone() mgoi.Session
- func (m *MockSession) Close()
- func (m *MockSession) Copy() mgoi.Session
- func (m *MockSession) DB(arg0 string) mgoi.Database
- func (m *MockSession) DatabaseNames() ([]string, error)
- func (m *MockSession) EXPECT() *MockSessionMockRecorder
- func (m *MockSession) EnsureSafe(arg0 *mgo.Safe)
- func (m *MockSession) FindRef(arg0 *mgo.DBRef) mgoi.Query
- func (m *MockSession) Fsync(arg0 bool) error
- func (m *MockSession) FsyncLock() error
- func (m *MockSession) FsyncUnlock() error
- func (m *MockSession) LiveServers() []string
- func (m *MockSession) Login(arg0 *mgo.Credential) error
- func (m *MockSession) LogoutAll()
- func (m *MockSession) Mode() mgo.Mode
- func (m *MockSession) New() mgoi.Session
- func (m *MockSession) Ping() error
- func (m *MockSession) Refresh()
- func (m *MockSession) ResetIndexCache()
- func (m *MockSession) Run(arg0, arg1 interface{}) error
- func (m *MockSession) Safe() *mgo.Safe
- func (m *MockSession) SelectServers(arg0 ...bson.D)
- func (m *MockSession) SetBatch(arg0 int)
- func (m *MockSession) SetBypassValidation(arg0 bool)
- func (m *MockSession) SetCursorTimeout(arg0 time.Duration)
- func (m *MockSession) SetMode(arg0 mgo.Mode, arg1 bool)
- func (m *MockSession) SetPoolLimit(arg0 int)
- func (m *MockSession) SetPoolTimeout(arg0 time.Duration)
- func (m *MockSession) SetPrefetch(arg0 float64)
- func (m *MockSession) SetSafe(arg0 *mgo.Safe)
- func (m *MockSession) SetSocketTimeout(arg0 time.Duration)
- func (m *MockSession) SetSyncTimeout(arg0 time.Duration)
- type MockSessionMockRecorder
- func (mr *MockSessionMockRecorder) BuildInfo() *gomock.Call
- func (mr *MockSessionMockRecorder) Clone() *gomock.Call
- func (mr *MockSessionMockRecorder) Close() *gomock.Call
- func (mr *MockSessionMockRecorder) Copy() *gomock.Call
- func (mr *MockSessionMockRecorder) DB(arg0 interface{}) *gomock.Call
- func (mr *MockSessionMockRecorder) DatabaseNames() *gomock.Call
- func (mr *MockSessionMockRecorder) EnsureSafe(arg0 interface{}) *gomock.Call
- func (mr *MockSessionMockRecorder) FindRef(arg0 interface{}) *gomock.Call
- func (mr *MockSessionMockRecorder) Fsync(arg0 interface{}) *gomock.Call
- func (mr *MockSessionMockRecorder) FsyncLock() *gomock.Call
- func (mr *MockSessionMockRecorder) FsyncUnlock() *gomock.Call
- func (mr *MockSessionMockRecorder) LiveServers() *gomock.Call
- func (mr *MockSessionMockRecorder) Login(arg0 interface{}) *gomock.Call
- func (mr *MockSessionMockRecorder) LogoutAll() *gomock.Call
- func (mr *MockSessionMockRecorder) Mode() *gomock.Call
- func (mr *MockSessionMockRecorder) New() *gomock.Call
- func (mr *MockSessionMockRecorder) Ping() *gomock.Call
- func (mr *MockSessionMockRecorder) Refresh() *gomock.Call
- func (mr *MockSessionMockRecorder) ResetIndexCache() *gomock.Call
- func (mr *MockSessionMockRecorder) Run(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockSessionMockRecorder) Safe() *gomock.Call
- func (mr *MockSessionMockRecorder) SelectServers(arg0 ...interface{}) *gomock.Call
- func (mr *MockSessionMockRecorder) SetBatch(arg0 interface{}) *gomock.Call
- func (mr *MockSessionMockRecorder) SetBypassValidation(arg0 interface{}) *gomock.Call
- func (mr *MockSessionMockRecorder) SetCursorTimeout(arg0 interface{}) *gomock.Call
- func (mr *MockSessionMockRecorder) SetMode(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockSessionMockRecorder) SetPoolLimit(arg0 interface{}) *gomock.Call
- func (mr *MockSessionMockRecorder) SetPoolTimeout(arg0 interface{}) *gomock.Call
- func (mr *MockSessionMockRecorder) SetPrefetch(arg0 interface{}) *gomock.Call
- func (mr *MockSessionMockRecorder) SetSafe(arg0 interface{}) *gomock.Call
- func (mr *MockSessionMockRecorder) SetSocketTimeout(arg0 interface{}) *gomock.Call
- func (mr *MockSessionMockRecorder) SetSyncTimeout(arg0 interface{}) *gomock.Call
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) RemoveAll ¶
func (m *MockBulk) RemoveAll(arg0 ...interface{})
RemoveAll 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) 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 ¶
func (m *MockCollection) EXPECT() *MockCollectionMockRecorder
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 ¶
func (mr *MockCollectionMockRecorder) Bulk() *gomock.Call
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) 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 ¶
func (m *MockDatabase) EXPECT() *MockDatabaseMockRecorder
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) 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) EXPECT ¶
func (m *MockIter) EXPECT() *MockIterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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) EXPECT ¶
func (m *MockQuery) EXPECT() *MockQueryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockQuery) SetMaxScan ¶
SetMaxScan mocks base method.
func (*MockQuery) SetMaxTime ¶
SetMaxTime 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) 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) 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) 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) SelectServers ¶
func (m *MockSession) SelectServers(arg0 ...bson.D)
SelectServers 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.