Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockMongoClient
- func (m *MockMongoClient) Aggregate(ctx context.Context, filters []interface{}, decoder interface{}) error
- func (m *MockMongoClient) DeleteOne(ctx context.Context, filter interface{}) error
- func (m *MockMongoClient) EXPECT() *MockMongoClientMockRecorder
- func (m *MockMongoClient) Find(ctx context.Context, queryBuilder query.QueryBuilder, decoder interface{}) error
- func (m *MockMongoClient) FindOne(ctx context.Context, queryBuilder query.QueryBuilder, decoder interface{}) error
- func (m *MockMongoClient) InsertOne(ctx context.Context, filter interface{}) (string, error)
- func (m *MockMongoClient) ReplaceOne(ctx context.Context, queryBuilder query.QueryBuilder, payload interface{}) error
- func (m *MockMongoClient) SetCollection(arg0 string)
- func (m *MockMongoClient) UpdateOne(ctx context.Context, filter, payload interface{}) error
- type MockMongoClientMockRecorder
- func (mr *MockMongoClientMockRecorder) Aggregate(ctx, filters, decoder interface{}) *gomock.Call
- func (mr *MockMongoClientMockRecorder) DeleteOne(ctx, filter interface{}) *gomock.Call
- func (mr *MockMongoClientMockRecorder) Find(ctx, queryBuilder, decoder interface{}) *gomock.Call
- func (mr *MockMongoClientMockRecorder) FindOne(ctx, queryBuilder, decoder interface{}) *gomock.Call
- func (mr *MockMongoClientMockRecorder) InsertOne(ctx, filter interface{}) *gomock.Call
- func (mr *MockMongoClientMockRecorder) ReplaceOne(ctx, queryBuilder, payload interface{}) *gomock.Call
- func (mr *MockMongoClientMockRecorder) SetCollection(arg0 interface{}) *gomock.Call
- func (mr *MockMongoClientMockRecorder) UpdateOne(ctx, filter, payload interface{}) *gomock.Call
- type MockMongoConfig
- type MockMongoConfigMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockMongoClient ¶
type MockMongoClient struct {
// contains filtered or unexported fields
}
MockMongoClient is a mock of MongoClient interface.
func NewMockMongoClient ¶
func NewMockMongoClient(ctrl *gomock.Controller) *MockMongoClient
NewMockMongoClient creates a new mock instance.
func (*MockMongoClient) Aggregate ¶
func (m *MockMongoClient) Aggregate(ctx context.Context, filters []interface{}, decoder interface{}) error
Aggregate mocks base method.
func (*MockMongoClient) DeleteOne ¶
func (m *MockMongoClient) DeleteOne(ctx context.Context, filter interface{}) error
DeleteOne mocks base method.
func (*MockMongoClient) EXPECT ¶
func (m *MockMongoClient) EXPECT() *MockMongoClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMongoClient) Find ¶
func (m *MockMongoClient) Find(ctx context.Context, queryBuilder query.QueryBuilder, decoder interface{}) error
Find mocks base method.
func (*MockMongoClient) FindOne ¶
func (m *MockMongoClient) FindOne(ctx context.Context, queryBuilder query.QueryBuilder, decoder interface{}) error
FindOne mocks base method.
func (*MockMongoClient) InsertOne ¶
func (m *MockMongoClient) InsertOne(ctx context.Context, filter interface{}) (string, error)
InsertOne mocks base method.
func (*MockMongoClient) ReplaceOne ¶
func (m *MockMongoClient) ReplaceOne(ctx context.Context, queryBuilder query.QueryBuilder, payload interface{}) error
ReplaceOne mocks base method.
func (*MockMongoClient) SetCollection ¶
func (m *MockMongoClient) SetCollection(arg0 string)
SetCollection mocks base method.
type MockMongoClientMockRecorder ¶
type MockMongoClientMockRecorder struct {
// contains filtered or unexported fields
}
MockMongoClientMockRecorder is the mock recorder for MockMongoClient.
func (*MockMongoClientMockRecorder) Aggregate ¶
func (mr *MockMongoClientMockRecorder) Aggregate(ctx, filters, decoder interface{}) *gomock.Call
Aggregate indicates an expected call of Aggregate.
func (*MockMongoClientMockRecorder) DeleteOne ¶
func (mr *MockMongoClientMockRecorder) DeleteOne(ctx, filter interface{}) *gomock.Call
DeleteOne indicates an expected call of DeleteOne.
func (*MockMongoClientMockRecorder) Find ¶
func (mr *MockMongoClientMockRecorder) Find(ctx, queryBuilder, decoder interface{}) *gomock.Call
Find indicates an expected call of Find.
func (*MockMongoClientMockRecorder) FindOne ¶
func (mr *MockMongoClientMockRecorder) FindOne(ctx, queryBuilder, decoder interface{}) *gomock.Call
FindOne indicates an expected call of FindOne.
func (*MockMongoClientMockRecorder) InsertOne ¶
func (mr *MockMongoClientMockRecorder) InsertOne(ctx, filter interface{}) *gomock.Call
InsertOne indicates an expected call of InsertOne.
func (*MockMongoClientMockRecorder) ReplaceOne ¶
func (mr *MockMongoClientMockRecorder) ReplaceOne(ctx, queryBuilder, payload interface{}) *gomock.Call
ReplaceOne indicates an expected call of ReplaceOne.
func (*MockMongoClientMockRecorder) SetCollection ¶
func (mr *MockMongoClientMockRecorder) SetCollection(arg0 interface{}) *gomock.Call
SetCollection indicates an expected call of SetCollection.
func (*MockMongoClientMockRecorder) UpdateOne ¶
func (mr *MockMongoClientMockRecorder) UpdateOne(ctx, filter, payload interface{}) *gomock.Call
UpdateOne indicates an expected call of UpdateOne.
type MockMongoConfig ¶
type MockMongoConfig struct {
// contains filtered or unexported fields
}
MockMongoConfig is a mock of MongoConfig interface.
func NewMockMongoConfig ¶
func NewMockMongoConfig(ctrl *gomock.Controller) *MockMongoConfig
NewMockMongoConfig creates a new mock instance.
func (*MockMongoConfig) EXPECT ¶
func (m *MockMongoConfig) EXPECT() *MockMongoConfigMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMongoConfig) GetConnUrl ¶
func (m *MockMongoConfig) GetConnUrl() string
GetConnUrl mocks base method.
func (*MockMongoConfig) GetDBName ¶
func (m *MockMongoConfig) GetDBName() string
GetDBName mocks base method.
type MockMongoConfigMockRecorder ¶
type MockMongoConfigMockRecorder struct {
// contains filtered or unexported fields
}
MockMongoConfigMockRecorder is the mock recorder for MockMongoConfig.
func (*MockMongoConfigMockRecorder) GetConnUrl ¶
func (mr *MockMongoConfigMockRecorder) GetConnUrl() *gomock.Call
GetConnUrl indicates an expected call of GetConnUrl.
func (*MockMongoConfigMockRecorder) GetDBName ¶
func (mr *MockMongoConfigMockRecorder) GetDBName() *gomock.Call
GetDBName indicates an expected call of GetDBName.