Documentation ¶
Overview ¶
Package mock_mongo is a generated GoMock package.
Package mock_mongo is a generated GoMock package.
Index ¶
- type MockChangeStream
- func (m *MockChangeStream) Close(arg0 context.Context) error
- func (m *MockChangeStream) Decode(arg0 interface{}) error
- func (m *MockChangeStream) EXPECT() *MockChangeStreamMockRecorder
- func (m *MockChangeStream) Err() error
- func (m *MockChangeStream) ID() int64
- func (m *MockChangeStream) Next(arg0 context.Context) bool
- func (m *MockChangeStream) ResumeToken() bson.Raw
- func (m *MockChangeStream) TryNext(arg0 context.Context) bool
- type MockChangeStreamMockRecorder
- func (mr *MockChangeStreamMockRecorder) Close(arg0 interface{}) *gomock.Call
- func (mr *MockChangeStreamMockRecorder) Decode(arg0 interface{}) *gomock.Call
- func (mr *MockChangeStreamMockRecorder) Err() *gomock.Call
- func (mr *MockChangeStreamMockRecorder) ID() *gomock.Call
- func (mr *MockChangeStreamMockRecorder) Next(arg0 interface{}) *gomock.Call
- func (mr *MockChangeStreamMockRecorder) ResumeToken() *gomock.Call
- func (mr *MockChangeStreamMockRecorder) TryNext(arg0 interface{}) *gomock.Call
- type MockCommandsRegister
- func (m *MockCommandsRegister) Clear()
- func (m *MockCommandsRegister) Commit(arg0 context.Context) error
- func (m *MockCommandsRegister) EXPECT() *MockCommandsRegisterMockRecorder
- func (m *MockCommandsRegister) RegisterInsert(arg0 interface{})
- func (m *MockCommandsRegister) RegisterUpdate(arg0 string, arg1 primitive.M)
- type MockCommandsRegisterMockRecorder
- func (mr *MockCommandsRegisterMockRecorder) Clear() *gomock.Call
- func (mr *MockCommandsRegisterMockRecorder) Commit(arg0 interface{}) *gomock.Call
- func (mr *MockCommandsRegisterMockRecorder) RegisterInsert(arg0 interface{}) *gomock.Call
- func (mr *MockCommandsRegisterMockRecorder) RegisterUpdate(arg0, arg1 interface{}) *gomock.Call
- type MockCursor
- func (m *MockCursor) All(arg0 context.Context, arg1 interface{}) error
- func (m *MockCursor) Close(arg0 context.Context) error
- func (m *MockCursor) Decode(arg0 interface{}) error
- func (m *MockCursor) EXPECT() *MockCursorMockRecorder
- func (m *MockCursor) Err() error
- func (m *MockCursor) Next(arg0 context.Context) bool
- type MockCursorMockRecorder
- func (mr *MockCursorMockRecorder) All(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockCursorMockRecorder) Close(arg0 interface{}) *gomock.Call
- func (mr *MockCursorMockRecorder) Decode(arg0 interface{}) *gomock.Call
- func (mr *MockCursorMockRecorder) Err() *gomock.Call
- func (mr *MockCursorMockRecorder) Next(arg0 interface{}) *gomock.Call
- type MockDbClient
- func (m *MockDbClient) Collection(arg0 string) mongo.DbCollection
- func (m *MockDbClient) CreateCollection(arg0 context.Context, arg1 string, arg2 ...*options.CreateCollectionOptions) error
- func (m *MockDbClient) Disconnect(arg0 context.Context) error
- func (m *MockDbClient) EXPECT() *MockDbClientMockRecorder
- func (m *MockDbClient) IsDistributed() bool
- func (m *MockDbClient) ListCollectionNames(arg0 context.Context, arg1 interface{}, ...) ([]string, error)
- func (m *MockDbClient) Name() string
- func (m *MockDbClient) Ping(arg0 context.Context, arg1 *readpref.ReadPref) error
- func (m *MockDbClient) RunAdminCommand(arg0 context.Context, arg1 interface{}, arg2 ...*options.RunCmdOptions) mongo.SingleResultHelper
- func (m *MockDbClient) RunCommand(arg0 context.Context, arg1 interface{}, arg2 ...*options.RunCmdOptions) mongo.SingleResultHelper
- func (m *MockDbClient) SetRetry(arg0 int, arg1 time.Duration)
- func (m *MockDbClient) Watch(arg0 context.Context, arg1 interface{}, arg2 ...*options.ChangeStreamOptions) (*mongo0.ChangeStream, error)
- func (m *MockDbClient) WithTransaction(arg0 context.Context, arg1 func(context.Context) error) error
- type MockDbClientMockRecorder
- func (mr *MockDbClientMockRecorder) Collection(arg0 interface{}) *gomock.Call
- func (mr *MockDbClientMockRecorder) CreateCollection(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockDbClientMockRecorder) Disconnect(arg0 interface{}) *gomock.Call
- func (mr *MockDbClientMockRecorder) IsDistributed() *gomock.Call
- func (mr *MockDbClientMockRecorder) ListCollectionNames(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockDbClientMockRecorder) Name() *gomock.Call
- func (mr *MockDbClientMockRecorder) Ping(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDbClientMockRecorder) RunAdminCommand(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockDbClientMockRecorder) RunCommand(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockDbClientMockRecorder) SetRetry(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDbClientMockRecorder) Watch(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockDbClientMockRecorder) WithTransaction(arg0, arg1 interface{}) *gomock.Call
- type MockDbCollection
- func (m *MockDbCollection) Aggregate(arg0 context.Context, arg1 interface{}, arg2 ...*options.AggregateOptions) (mongo.Cursor, error)
- func (m *MockDbCollection) BulkWrite(arg0 context.Context, arg1 []mongo0.WriteModel, ...) (*mongo0.BulkWriteResult, error)
- func (m *MockDbCollection) CountDocuments(arg0 context.Context, arg1 interface{}, arg2 ...*options.CountOptions) (int64, error)
- func (m *MockDbCollection) DeleteMany(arg0 context.Context, arg1 interface{}, arg2 ...*options.DeleteOptions) (int64, error)
- func (m *MockDbCollection) DeleteOne(arg0 context.Context, arg1 interface{}, arg2 ...*options.DeleteOptions) (int64, error)
- func (m *MockDbCollection) Distinct(arg0 context.Context, arg1 string, arg2 interface{}, ...) ([]interface{}, error)
- func (m *MockDbCollection) Drop(arg0 context.Context) error
- func (m *MockDbCollection) EXPECT() *MockDbCollectionMockRecorder
- func (m *MockDbCollection) Find(arg0 context.Context, arg1 interface{}, arg2 ...*options.FindOptions) (mongo.Cursor, error)
- func (m *MockDbCollection) FindOne(arg0 context.Context, arg1 interface{}, arg2 ...*options.FindOneOptions) mongo.SingleResultHelper
- func (m *MockDbCollection) FindOneAndDelete(arg0 context.Context, arg1 interface{}, ...) mongo.SingleResultHelper
- func (m *MockDbCollection) FindOneAndReplace(arg0 context.Context, arg1, arg2 interface{}, ...) mongo.SingleResultHelper
- func (m *MockDbCollection) FindOneAndUpdate(arg0 context.Context, arg1, arg2 interface{}, ...) mongo.SingleResultHelper
- func (m *MockDbCollection) Indexes() mongo0.IndexView
- func (m *MockDbCollection) InsertMany(arg0 context.Context, arg1 []interface{}, arg2 ...*options.InsertManyOptions) ([]interface{}, error)
- func (m *MockDbCollection) InsertOne(arg0 context.Context, arg1 interface{}, arg2 ...*options.InsertOneOptions) (interface{}, error)
- func (m *MockDbCollection) Name() string
- func (m *MockDbCollection) ReplaceOne(arg0 context.Context, arg1, arg2 interface{}, arg3 ...*options.ReplaceOptions) (*mongo0.UpdateResult, error)
- func (m *MockDbCollection) UpdateMany(arg0 context.Context, arg1, arg2 interface{}, arg3 ...*options.UpdateOptions) (*mongo0.UpdateResult, error)
- func (m *MockDbCollection) UpdateOne(arg0 context.Context, arg1, arg2 interface{}, arg3 ...*options.UpdateOptions) (*mongo0.UpdateResult, error)
- func (m *MockDbCollection) Watch(arg0 context.Context, arg1 interface{}, arg2 ...*options.ChangeStreamOptions) (mongo.ChangeStream, error)
- type MockDbCollectionMockRecorder
- func (mr *MockDbCollectionMockRecorder) Aggregate(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockDbCollectionMockRecorder) BulkWrite(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockDbCollectionMockRecorder) CountDocuments(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockDbCollectionMockRecorder) DeleteMany(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockDbCollectionMockRecorder) DeleteOne(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockDbCollectionMockRecorder) Distinct(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
- func (mr *MockDbCollectionMockRecorder) Drop(arg0 interface{}) *gomock.Call
- func (mr *MockDbCollectionMockRecorder) Find(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockDbCollectionMockRecorder) FindOne(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockDbCollectionMockRecorder) FindOneAndDelete(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockDbCollectionMockRecorder) FindOneAndReplace(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
- func (mr *MockDbCollectionMockRecorder) FindOneAndUpdate(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
- func (mr *MockDbCollectionMockRecorder) Indexes() *gomock.Call
- func (mr *MockDbCollectionMockRecorder) InsertMany(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockDbCollectionMockRecorder) InsertOne(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockDbCollectionMockRecorder) Name() *gomock.Call
- func (mr *MockDbCollectionMockRecorder) ReplaceOne(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
- func (mr *MockDbCollectionMockRecorder) UpdateMany(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
- func (mr *MockDbCollectionMockRecorder) UpdateOne(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
- func (mr *MockDbCollectionMockRecorder) Watch(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- type MockSingleResultHelper
- type MockSingleResultHelperMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockChangeStream ¶
type MockChangeStream struct {
// contains filtered or unexported fields
}
MockChangeStream is a mock of ChangeStream interface.
func NewMockChangeStream ¶
func NewMockChangeStream(ctrl *gomock.Controller) *MockChangeStream
NewMockChangeStream creates a new mock instance.
func (*MockChangeStream) Close ¶
func (m *MockChangeStream) Close(arg0 context.Context) error
Close mocks base method.
func (*MockChangeStream) Decode ¶
func (m *MockChangeStream) Decode(arg0 interface{}) error
Decode mocks base method.
func (*MockChangeStream) EXPECT ¶
func (m *MockChangeStream) EXPECT() *MockChangeStreamMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockChangeStream) Next ¶
func (m *MockChangeStream) Next(arg0 context.Context) bool
Next mocks base method.
func (*MockChangeStream) ResumeToken ¶
func (m *MockChangeStream) ResumeToken() bson.Raw
ResumeToken mocks base method.
func (*MockChangeStream) TryNext ¶
func (m *MockChangeStream) TryNext(arg0 context.Context) bool
TryNext mocks base method.
type MockChangeStreamMockRecorder ¶
type MockChangeStreamMockRecorder struct {
// contains filtered or unexported fields
}
MockChangeStreamMockRecorder is the mock recorder for MockChangeStream.
func (*MockChangeStreamMockRecorder) Close ¶
func (mr *MockChangeStreamMockRecorder) Close(arg0 interface{}) *gomock.Call
Close indicates an expected call of Close.
func (*MockChangeStreamMockRecorder) Decode ¶
func (mr *MockChangeStreamMockRecorder) Decode(arg0 interface{}) *gomock.Call
Decode indicates an expected call of Decode.
func (*MockChangeStreamMockRecorder) Err ¶
func (mr *MockChangeStreamMockRecorder) Err() *gomock.Call
Err indicates an expected call of Err.
func (*MockChangeStreamMockRecorder) ID ¶
func (mr *MockChangeStreamMockRecorder) ID() *gomock.Call
ID indicates an expected call of ID.
func (*MockChangeStreamMockRecorder) Next ¶
func (mr *MockChangeStreamMockRecorder) Next(arg0 interface{}) *gomock.Call
Next indicates an expected call of Next.
func (*MockChangeStreamMockRecorder) ResumeToken ¶
func (mr *MockChangeStreamMockRecorder) ResumeToken() *gomock.Call
ResumeToken indicates an expected call of ResumeToken.
func (*MockChangeStreamMockRecorder) TryNext ¶
func (mr *MockChangeStreamMockRecorder) TryNext(arg0 interface{}) *gomock.Call
TryNext indicates an expected call of TryNext.
type MockCommandsRegister ¶
type MockCommandsRegister struct {
// contains filtered or unexported fields
}
MockCommandsRegister is a mock of CommandsRegister interface.
func NewMockCommandsRegister ¶
func NewMockCommandsRegister(ctrl *gomock.Controller) *MockCommandsRegister
NewMockCommandsRegister creates a new mock instance.
func (*MockCommandsRegister) Clear ¶
func (m *MockCommandsRegister) Clear()
Clear mocks base method.
func (*MockCommandsRegister) Commit ¶
func (m *MockCommandsRegister) Commit(arg0 context.Context) error
Commit mocks base method.
func (*MockCommandsRegister) EXPECT ¶
func (m *MockCommandsRegister) EXPECT() *MockCommandsRegisterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCommandsRegister) RegisterInsert ¶
func (m *MockCommandsRegister) RegisterInsert(arg0 interface{})
RegisterInsert mocks base method.
func (*MockCommandsRegister) RegisterUpdate ¶
func (m *MockCommandsRegister) RegisterUpdate(arg0 string, arg1 primitive.M)
RegisterUpdate mocks base method.
type MockCommandsRegisterMockRecorder ¶
type MockCommandsRegisterMockRecorder struct {
// contains filtered or unexported fields
}
MockCommandsRegisterMockRecorder is the mock recorder for MockCommandsRegister.
func (*MockCommandsRegisterMockRecorder) Clear ¶
func (mr *MockCommandsRegisterMockRecorder) Clear() *gomock.Call
Clear indicates an expected call of Clear.
func (*MockCommandsRegisterMockRecorder) Commit ¶
func (mr *MockCommandsRegisterMockRecorder) Commit(arg0 interface{}) *gomock.Call
Commit indicates an expected call of Commit.
func (*MockCommandsRegisterMockRecorder) RegisterInsert ¶
func (mr *MockCommandsRegisterMockRecorder) RegisterInsert(arg0 interface{}) *gomock.Call
RegisterInsert indicates an expected call of RegisterInsert.
func (*MockCommandsRegisterMockRecorder) RegisterUpdate ¶
func (mr *MockCommandsRegisterMockRecorder) RegisterUpdate(arg0, arg1 interface{}) *gomock.Call
RegisterUpdate indicates an expected call of RegisterUpdate.
type MockCursor ¶
type MockCursor struct {
// contains filtered or unexported fields
}
MockCursor is a mock of Cursor interface.
func NewMockCursor ¶
func NewMockCursor(ctrl *gomock.Controller) *MockCursor
NewMockCursor creates a new mock instance.
func (*MockCursor) All ¶
func (m *MockCursor) All(arg0 context.Context, arg1 interface{}) error
All mocks base method.
func (*MockCursor) Close ¶
func (m *MockCursor) Close(arg0 context.Context) error
Close mocks base method.
func (*MockCursor) Decode ¶
func (m *MockCursor) Decode(arg0 interface{}) error
Decode mocks base method.
func (*MockCursor) EXPECT ¶
func (m *MockCursor) EXPECT() *MockCursorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCursor) Next ¶
func (m *MockCursor) Next(arg0 context.Context) bool
Next mocks base method.
type MockCursorMockRecorder ¶
type MockCursorMockRecorder struct {
// contains filtered or unexported fields
}
MockCursorMockRecorder is the mock recorder for MockCursor.
func (*MockCursorMockRecorder) All ¶
func (mr *MockCursorMockRecorder) All(arg0, arg1 interface{}) *gomock.Call
All indicates an expected call of All.
func (*MockCursorMockRecorder) Close ¶
func (mr *MockCursorMockRecorder) Close(arg0 interface{}) *gomock.Call
Close indicates an expected call of Close.
func (*MockCursorMockRecorder) Decode ¶
func (mr *MockCursorMockRecorder) Decode(arg0 interface{}) *gomock.Call
Decode indicates an expected call of Decode.
func (*MockCursorMockRecorder) Err ¶
func (mr *MockCursorMockRecorder) Err() *gomock.Call
Err indicates an expected call of Err.
func (*MockCursorMockRecorder) Next ¶
func (mr *MockCursorMockRecorder) Next(arg0 interface{}) *gomock.Call
Next indicates an expected call of Next.
type MockDbClient ¶
type MockDbClient struct {
// contains filtered or unexported fields
}
MockDbClient is a mock of DbClient interface.
func NewMockDbClient ¶
func NewMockDbClient(ctrl *gomock.Controller) *MockDbClient
NewMockDbClient creates a new mock instance.
func (*MockDbClient) Collection ¶
func (m *MockDbClient) Collection(arg0 string) mongo.DbCollection
Collection mocks base method.
func (*MockDbClient) CreateCollection ¶
func (m *MockDbClient) CreateCollection(arg0 context.Context, arg1 string, arg2 ...*options.CreateCollectionOptions) error
CreateCollection mocks base method.
func (*MockDbClient) Disconnect ¶
func (m *MockDbClient) Disconnect(arg0 context.Context) error
Disconnect mocks base method.
func (*MockDbClient) EXPECT ¶
func (m *MockDbClient) EXPECT() *MockDbClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDbClient) IsDistributed ¶
func (m *MockDbClient) IsDistributed() bool
IsDistributed mocks base method.
func (*MockDbClient) ListCollectionNames ¶
func (m *MockDbClient) ListCollectionNames(arg0 context.Context, arg1 interface{}, arg2 ...*options.ListCollectionsOptions) ([]string, error)
ListCollectionNames mocks base method.
func (*MockDbClient) Ping ¶
Ping mocks base method.
func (*MockDbClient) RunAdminCommand ¶
func (m *MockDbClient) RunAdminCommand(arg0 context.Context, arg1 interface{}, arg2 ...*options.RunCmdOptions) mongo.SingleResultHelper
RunAdminCommand mocks base method.
func (*MockDbClient) RunCommand ¶
func (m *MockDbClient) RunCommand(arg0 context.Context, arg1 interface{}, arg2 ...*options.RunCmdOptions) mongo.SingleResultHelper
RunCommand mocks base method.
func (*MockDbClient) SetRetry ¶
func (m *MockDbClient) SetRetry(arg0 int, arg1 time.Duration)
SetRetry mocks base method.
func (*MockDbClient) Watch ¶
func (m *MockDbClient) Watch(arg0 context.Context, arg1 interface{}, arg2 ...*options.ChangeStreamOptions) (*mongo0.ChangeStream, error)
Watch mocks base method.
type MockDbClientMockRecorder ¶
type MockDbClientMockRecorder struct {
// contains filtered or unexported fields
}
MockDbClientMockRecorder is the mock recorder for MockDbClient.
func (*MockDbClientMockRecorder) Collection ¶
func (mr *MockDbClientMockRecorder) Collection(arg0 interface{}) *gomock.Call
Collection indicates an expected call of Collection.
func (*MockDbClientMockRecorder) CreateCollection ¶
func (mr *MockDbClientMockRecorder) CreateCollection(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
CreateCollection indicates an expected call of CreateCollection.
func (*MockDbClientMockRecorder) Disconnect ¶
func (mr *MockDbClientMockRecorder) Disconnect(arg0 interface{}) *gomock.Call
Disconnect indicates an expected call of Disconnect.
func (*MockDbClientMockRecorder) IsDistributed ¶
func (mr *MockDbClientMockRecorder) IsDistributed() *gomock.Call
IsDistributed indicates an expected call of IsDistributed.
func (*MockDbClientMockRecorder) ListCollectionNames ¶
func (mr *MockDbClientMockRecorder) ListCollectionNames(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
ListCollectionNames indicates an expected call of ListCollectionNames.
func (*MockDbClientMockRecorder) Name ¶
func (mr *MockDbClientMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockDbClientMockRecorder) Ping ¶
func (mr *MockDbClientMockRecorder) Ping(arg0, arg1 interface{}) *gomock.Call
Ping indicates an expected call of Ping.
func (*MockDbClientMockRecorder) RunAdminCommand ¶
func (mr *MockDbClientMockRecorder) RunAdminCommand(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
RunAdminCommand indicates an expected call of RunAdminCommand.
func (*MockDbClientMockRecorder) RunCommand ¶
func (mr *MockDbClientMockRecorder) RunCommand(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
RunCommand indicates an expected call of RunCommand.
func (*MockDbClientMockRecorder) SetRetry ¶
func (mr *MockDbClientMockRecorder) SetRetry(arg0, arg1 interface{}) *gomock.Call
SetRetry indicates an expected call of SetRetry.
func (*MockDbClientMockRecorder) Watch ¶
func (mr *MockDbClientMockRecorder) Watch(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
Watch indicates an expected call of Watch.
func (*MockDbClientMockRecorder) WithTransaction ¶
func (mr *MockDbClientMockRecorder) WithTransaction(arg0, arg1 interface{}) *gomock.Call
WithTransaction indicates an expected call of WithTransaction.
type MockDbCollection ¶
type MockDbCollection struct {
// contains filtered or unexported fields
}
MockDbCollection is a mock of DbCollection interface.
func NewMockDbCollection ¶
func NewMockDbCollection(ctrl *gomock.Controller) *MockDbCollection
NewMockDbCollection creates a new mock instance.
func (*MockDbCollection) Aggregate ¶
func (m *MockDbCollection) Aggregate(arg0 context.Context, arg1 interface{}, arg2 ...*options.AggregateOptions) (mongo.Cursor, error)
Aggregate mocks base method.
func (*MockDbCollection) BulkWrite ¶
func (m *MockDbCollection) BulkWrite(arg0 context.Context, arg1 []mongo0.WriteModel, arg2 ...*options.BulkWriteOptions) (*mongo0.BulkWriteResult, error)
BulkWrite mocks base method.
func (*MockDbCollection) CountDocuments ¶
func (m *MockDbCollection) CountDocuments(arg0 context.Context, arg1 interface{}, arg2 ...*options.CountOptions) (int64, error)
CountDocuments mocks base method.
func (*MockDbCollection) DeleteMany ¶
func (m *MockDbCollection) DeleteMany(arg0 context.Context, arg1 interface{}, arg2 ...*options.DeleteOptions) (int64, error)
DeleteMany mocks base method.
func (*MockDbCollection) DeleteOne ¶
func (m *MockDbCollection) DeleteOne(arg0 context.Context, arg1 interface{}, arg2 ...*options.DeleteOptions) (int64, error)
DeleteOne mocks base method.
func (*MockDbCollection) Distinct ¶
func (m *MockDbCollection) Distinct(arg0 context.Context, arg1 string, arg2 interface{}, arg3 ...*options.DistinctOptions) ([]interface{}, error)
Distinct mocks base method.
func (*MockDbCollection) Drop ¶
func (m *MockDbCollection) Drop(arg0 context.Context) error
Drop mocks base method.
func (*MockDbCollection) EXPECT ¶
func (m *MockDbCollection) EXPECT() *MockDbCollectionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDbCollection) Find ¶
func (m *MockDbCollection) Find(arg0 context.Context, arg1 interface{}, arg2 ...*options.FindOptions) (mongo.Cursor, error)
Find mocks base method.
func (*MockDbCollection) FindOne ¶
func (m *MockDbCollection) FindOne(arg0 context.Context, arg1 interface{}, arg2 ...*options.FindOneOptions) mongo.SingleResultHelper
FindOne mocks base method.
func (*MockDbCollection) FindOneAndDelete ¶
func (m *MockDbCollection) FindOneAndDelete(arg0 context.Context, arg1 interface{}, arg2 ...*options.FindOneAndDeleteOptions) mongo.SingleResultHelper
FindOneAndDelete mocks base method.
func (*MockDbCollection) FindOneAndReplace ¶
func (m *MockDbCollection) FindOneAndReplace(arg0 context.Context, arg1, arg2 interface{}, arg3 ...*options.FindOneAndReplaceOptions) mongo.SingleResultHelper
FindOneAndReplace mocks base method.
func (*MockDbCollection) FindOneAndUpdate ¶
func (m *MockDbCollection) FindOneAndUpdate(arg0 context.Context, arg1, arg2 interface{}, arg3 ...*options.FindOneAndUpdateOptions) mongo.SingleResultHelper
FindOneAndUpdate mocks base method.
func (*MockDbCollection) Indexes ¶
func (m *MockDbCollection) Indexes() mongo0.IndexView
Indexes mocks base method.
func (*MockDbCollection) InsertMany ¶
func (m *MockDbCollection) InsertMany(arg0 context.Context, arg1 []interface{}, arg2 ...*options.InsertManyOptions) ([]interface{}, error)
InsertMany mocks base method.
func (*MockDbCollection) InsertOne ¶
func (m *MockDbCollection) InsertOne(arg0 context.Context, arg1 interface{}, arg2 ...*options.InsertOneOptions) (interface{}, error)
InsertOne mocks base method.
func (*MockDbCollection) ReplaceOne ¶
func (m *MockDbCollection) ReplaceOne(arg0 context.Context, arg1, arg2 interface{}, arg3 ...*options.ReplaceOptions) (*mongo0.UpdateResult, error)
ReplaceOne mocks base method.
func (*MockDbCollection) UpdateMany ¶
func (m *MockDbCollection) UpdateMany(arg0 context.Context, arg1, arg2 interface{}, arg3 ...*options.UpdateOptions) (*mongo0.UpdateResult, error)
UpdateMany mocks base method.
func (*MockDbCollection) UpdateOne ¶
func (m *MockDbCollection) UpdateOne(arg0 context.Context, arg1, arg2 interface{}, arg3 ...*options.UpdateOptions) (*mongo0.UpdateResult, error)
UpdateOne mocks base method.
func (*MockDbCollection) Watch ¶
func (m *MockDbCollection) Watch(arg0 context.Context, arg1 interface{}, arg2 ...*options.ChangeStreamOptions) (mongo.ChangeStream, error)
Watch mocks base method.
type MockDbCollectionMockRecorder ¶
type MockDbCollectionMockRecorder struct {
// contains filtered or unexported fields
}
MockDbCollectionMockRecorder is the mock recorder for MockDbCollection.
func (*MockDbCollectionMockRecorder) Aggregate ¶
func (mr *MockDbCollectionMockRecorder) Aggregate(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
Aggregate indicates an expected call of Aggregate.
func (*MockDbCollectionMockRecorder) BulkWrite ¶
func (mr *MockDbCollectionMockRecorder) BulkWrite(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
BulkWrite indicates an expected call of BulkWrite.
func (*MockDbCollectionMockRecorder) CountDocuments ¶
func (mr *MockDbCollectionMockRecorder) CountDocuments(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
CountDocuments indicates an expected call of CountDocuments.
func (*MockDbCollectionMockRecorder) DeleteMany ¶
func (mr *MockDbCollectionMockRecorder) DeleteMany(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
DeleteMany indicates an expected call of DeleteMany.
func (*MockDbCollectionMockRecorder) DeleteOne ¶
func (mr *MockDbCollectionMockRecorder) DeleteOne(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
DeleteOne indicates an expected call of DeleteOne.
func (*MockDbCollectionMockRecorder) Distinct ¶
func (mr *MockDbCollectionMockRecorder) Distinct(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
Distinct indicates an expected call of Distinct.
func (*MockDbCollectionMockRecorder) Drop ¶
func (mr *MockDbCollectionMockRecorder) Drop(arg0 interface{}) *gomock.Call
Drop indicates an expected call of Drop.
func (*MockDbCollectionMockRecorder) Find ¶
func (mr *MockDbCollectionMockRecorder) Find(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
Find indicates an expected call of Find.
func (*MockDbCollectionMockRecorder) FindOne ¶
func (mr *MockDbCollectionMockRecorder) FindOne(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
FindOne indicates an expected call of FindOne.
func (*MockDbCollectionMockRecorder) FindOneAndDelete ¶
func (mr *MockDbCollectionMockRecorder) FindOneAndDelete(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
FindOneAndDelete indicates an expected call of FindOneAndDelete.
func (*MockDbCollectionMockRecorder) FindOneAndReplace ¶
func (mr *MockDbCollectionMockRecorder) FindOneAndReplace(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
FindOneAndReplace indicates an expected call of FindOneAndReplace.
func (*MockDbCollectionMockRecorder) FindOneAndUpdate ¶
func (mr *MockDbCollectionMockRecorder) FindOneAndUpdate(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
FindOneAndUpdate indicates an expected call of FindOneAndUpdate.
func (*MockDbCollectionMockRecorder) Indexes ¶
func (mr *MockDbCollectionMockRecorder) Indexes() *gomock.Call
Indexes indicates an expected call of Indexes.
func (*MockDbCollectionMockRecorder) InsertMany ¶
func (mr *MockDbCollectionMockRecorder) InsertMany(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
InsertMany indicates an expected call of InsertMany.
func (*MockDbCollectionMockRecorder) InsertOne ¶
func (mr *MockDbCollectionMockRecorder) InsertOne(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
InsertOne indicates an expected call of InsertOne.
func (*MockDbCollectionMockRecorder) Name ¶
func (mr *MockDbCollectionMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockDbCollectionMockRecorder) ReplaceOne ¶
func (mr *MockDbCollectionMockRecorder) ReplaceOne(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
ReplaceOne indicates an expected call of ReplaceOne.
func (*MockDbCollectionMockRecorder) UpdateMany ¶
func (mr *MockDbCollectionMockRecorder) UpdateMany(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
UpdateMany indicates an expected call of UpdateMany.
func (*MockDbCollectionMockRecorder) UpdateOne ¶
func (mr *MockDbCollectionMockRecorder) UpdateOne(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
UpdateOne indicates an expected call of UpdateOne.
func (*MockDbCollectionMockRecorder) Watch ¶
func (mr *MockDbCollectionMockRecorder) Watch(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
Watch indicates an expected call of Watch.
type MockSingleResultHelper ¶
type MockSingleResultHelper struct {
// contains filtered or unexported fields
}
MockSingleResultHelper is a mock of SingleResultHelper interface.
func NewMockSingleResultHelper ¶
func NewMockSingleResultHelper(ctrl *gomock.Controller) *MockSingleResultHelper
NewMockSingleResultHelper creates a new mock instance.
func (*MockSingleResultHelper) Decode ¶
func (m *MockSingleResultHelper) Decode(arg0 interface{}) error
Decode mocks base method.
func (*MockSingleResultHelper) DecodeBytes ¶
func (m *MockSingleResultHelper) DecodeBytes() (bson.Raw, error)
DecodeBytes mocks base method.
func (*MockSingleResultHelper) EXPECT ¶
func (m *MockSingleResultHelper) EXPECT() *MockSingleResultHelperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSingleResultHelper) Err ¶
func (m *MockSingleResultHelper) Err() error
Err mocks base method.
type MockSingleResultHelperMockRecorder ¶
type MockSingleResultHelperMockRecorder struct {
// contains filtered or unexported fields
}
MockSingleResultHelperMockRecorder is the mock recorder for MockSingleResultHelper.
func (*MockSingleResultHelperMockRecorder) Decode ¶
func (mr *MockSingleResultHelperMockRecorder) Decode(arg0 interface{}) *gomock.Call
Decode indicates an expected call of Decode.
func (*MockSingleResultHelperMockRecorder) DecodeBytes ¶
func (mr *MockSingleResultHelperMockRecorder) DecodeBytes() *gomock.Call
DecodeBytes indicates an expected call of DecodeBytes.
func (*MockSingleResultHelperMockRecorder) Err ¶
func (mr *MockSingleResultHelperMockRecorder) Err() *gomock.Call
Err indicates an expected call of Err.