Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockMongoClientInterface
- func (m *MockMongoClientInterface) Connect(ctx context.Context) error
- func (m *MockMongoClientInterface) Database(name string, opts ...*options.DatabaseOptions) *mongo.Database
- func (m *MockMongoClientInterface) EXPECT() *MockMongoClientInterfaceMockRecorder
- func (m *MockMongoClientInterface) Ping(ctx context.Context, rp *readpref.ReadPref) error
- type MockMongoClientInterfaceMockRecorder
- type MockPgxPoolInterface
- type MockPgxPoolInterfaceMockRecorder
- type MockPgxTxInterface
- type MockPgxTxInterfaceMockRecorder
- type MockSQLDBInterface
- func (m *MockSQLDBInterface) BeginTx(ctx context.Context, opts *sql.TxOptions) (*sql.Tx, error)
- func (m *MockSQLDBInterface) EXPECT() *MockSQLDBInterfaceMockRecorder
- func (m *MockSQLDBInterface) PingContext(ctx context.Context) error
- func (m *MockSQLDBInterface) SetConnMaxLifetime(d time.Duration)
- func (m *MockSQLDBInterface) SetMaxIdleConns(n int)
- func (m *MockSQLDBInterface) SetMaxOpenConns(n int)
- type MockSQLDBInterfaceMockRecorder
- func (mr *MockSQLDBInterfaceMockRecorder) BeginTx(ctx, opts interface{}) *gomock.Call
- func (mr *MockSQLDBInterfaceMockRecorder) PingContext(ctx interface{}) *gomock.Call
- func (mr *MockSQLDBInterfaceMockRecorder) SetConnMaxLifetime(d interface{}) *gomock.Call
- func (mr *MockSQLDBInterfaceMockRecorder) SetMaxIdleConns(n interface{}) *gomock.Call
- func (mr *MockSQLDBInterfaceMockRecorder) SetMaxOpenConns(n interface{}) *gomock.Call
- type MockSQLTxInterface
- type MockSQLTxInterfaceMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockMongoClientInterface ¶
type MockMongoClientInterface struct {
// contains filtered or unexported fields
}
MockMongoClientInterface is a mock of MongoClientInterface interface.
func NewMockMongoClientInterface ¶
func NewMockMongoClientInterface(ctrl *gomock.Controller) *MockMongoClientInterface
NewMockMongoClientInterface creates a new mock instance.
func (*MockMongoClientInterface) Connect ¶
func (m *MockMongoClientInterface) Connect(ctx context.Context) error
Connect mocks base method.
func (*MockMongoClientInterface) Database ¶
func (m *MockMongoClientInterface) Database(name string, opts ...*options.DatabaseOptions) *mongo.Database
Database mocks base method.
func (*MockMongoClientInterface) EXPECT ¶
func (m *MockMongoClientInterface) EXPECT() *MockMongoClientInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockMongoClientInterfaceMockRecorder ¶
type MockMongoClientInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockMongoClientInterfaceMockRecorder is the mock recorder for MockMongoClientInterface.
func (*MockMongoClientInterfaceMockRecorder) Connect ¶
func (mr *MockMongoClientInterfaceMockRecorder) Connect(ctx interface{}) *gomock.Call
Connect indicates an expected call of Connect.
func (*MockMongoClientInterfaceMockRecorder) Database ¶
func (mr *MockMongoClientInterfaceMockRecorder) Database(name interface{}, opts ...interface{}) *gomock.Call
Database indicates an expected call of Database.
func (*MockMongoClientInterfaceMockRecorder) Ping ¶
func (mr *MockMongoClientInterfaceMockRecorder) Ping(ctx, rp interface{}) *gomock.Call
Ping indicates an expected call of Ping.
type MockPgxPoolInterface ¶
type MockPgxPoolInterface struct {
// contains filtered or unexported fields
}
MockPgxPoolInterface is a mock of PgxPoolInterface interface.
func NewMockPgxPoolInterface ¶
func NewMockPgxPoolInterface(ctrl *gomock.Controller) *MockPgxPoolInterface
NewMockPgxPoolInterface creates a new mock instance.
func (*MockPgxPoolInterface) Close ¶
func (m *MockPgxPoolInterface) Close()
Close mocks base method.
func (*MockPgxPoolInterface) EXPECT ¶
func (m *MockPgxPoolInterface) EXPECT() *MockPgxPoolInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockPgxPoolInterfaceMockRecorder ¶
type MockPgxPoolInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockPgxPoolInterfaceMockRecorder is the mock recorder for MockPgxPoolInterface.
func (*MockPgxPoolInterfaceMockRecorder) Begin ¶
func (mr *MockPgxPoolInterfaceMockRecorder) Begin(ctx interface{}) *gomock.Call
Begin indicates an expected call of Begin.
func (*MockPgxPoolInterfaceMockRecorder) Close ¶
func (mr *MockPgxPoolInterfaceMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockPgxPoolInterfaceMockRecorder) Ping ¶
func (mr *MockPgxPoolInterfaceMockRecorder) Ping(ctx interface{}) *gomock.Call
Ping indicates an expected call of Ping.
type MockPgxTxInterface ¶
type MockPgxTxInterface struct {
// contains filtered or unexported fields
}
MockPgxTxInterface is a mock of PgxTxInterface interface.
func NewMockPgxTxInterface ¶
func NewMockPgxTxInterface(ctrl *gomock.Controller) *MockPgxTxInterface
NewMockPgxTxInterface creates a new mock instance.
func (*MockPgxTxInterface) Commit ¶
func (m *MockPgxTxInterface) Commit(ctx context.Context) error
Commit mocks base method.
func (*MockPgxTxInterface) EXPECT ¶
func (m *MockPgxTxInterface) EXPECT() *MockPgxTxInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockPgxTxInterfaceMockRecorder ¶
type MockPgxTxInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockPgxTxInterfaceMockRecorder is the mock recorder for MockPgxTxInterface.
func (*MockPgxTxInterfaceMockRecorder) Commit ¶
func (mr *MockPgxTxInterfaceMockRecorder) Commit(ctx interface{}) *gomock.Call
Commit indicates an expected call of Commit.
func (*MockPgxTxInterfaceMockRecorder) Rollback ¶
func (mr *MockPgxTxInterfaceMockRecorder) Rollback(ctx interface{}) *gomock.Call
Rollback indicates an expected call of Rollback.
type MockSQLDBInterface ¶
type MockSQLDBInterface struct {
// contains filtered or unexported fields
}
MockSQLDBInterface is a mock of SQLDBInterface interface.
func NewMockSQLDBInterface ¶
func NewMockSQLDBInterface(ctrl *gomock.Controller) *MockSQLDBInterface
NewMockSQLDBInterface creates a new mock instance.
func (*MockSQLDBInterface) EXPECT ¶
func (m *MockSQLDBInterface) EXPECT() *MockSQLDBInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSQLDBInterface) PingContext ¶
func (m *MockSQLDBInterface) PingContext(ctx context.Context) error
PingContext mocks base method.
func (*MockSQLDBInterface) SetConnMaxLifetime ¶
func (m *MockSQLDBInterface) SetConnMaxLifetime(d time.Duration)
SetConnMaxLifetime mocks base method.
func (*MockSQLDBInterface) SetMaxIdleConns ¶
func (m *MockSQLDBInterface) SetMaxIdleConns(n int)
SetMaxIdleConns mocks base method.
func (*MockSQLDBInterface) SetMaxOpenConns ¶
func (m *MockSQLDBInterface) SetMaxOpenConns(n int)
SetMaxOpenConns mocks base method.
type MockSQLDBInterfaceMockRecorder ¶
type MockSQLDBInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockSQLDBInterfaceMockRecorder is the mock recorder for MockSQLDBInterface.
func (*MockSQLDBInterfaceMockRecorder) BeginTx ¶
func (mr *MockSQLDBInterfaceMockRecorder) BeginTx(ctx, opts interface{}) *gomock.Call
BeginTx indicates an expected call of BeginTx.
func (*MockSQLDBInterfaceMockRecorder) PingContext ¶
func (mr *MockSQLDBInterfaceMockRecorder) PingContext(ctx interface{}) *gomock.Call
PingContext indicates an expected call of PingContext.
func (*MockSQLDBInterfaceMockRecorder) SetConnMaxLifetime ¶
func (mr *MockSQLDBInterfaceMockRecorder) SetConnMaxLifetime(d interface{}) *gomock.Call
SetConnMaxLifetime indicates an expected call of SetConnMaxLifetime.
func (*MockSQLDBInterfaceMockRecorder) SetMaxIdleConns ¶
func (mr *MockSQLDBInterfaceMockRecorder) SetMaxIdleConns(n interface{}) *gomock.Call
SetMaxIdleConns indicates an expected call of SetMaxIdleConns.
func (*MockSQLDBInterfaceMockRecorder) SetMaxOpenConns ¶
func (mr *MockSQLDBInterfaceMockRecorder) SetMaxOpenConns(n interface{}) *gomock.Call
SetMaxOpenConns indicates an expected call of SetMaxOpenConns.
type MockSQLTxInterface ¶
type MockSQLTxInterface struct {
// contains filtered or unexported fields
}
MockSQLTxInterface is a mock of SQLTxInterface interface.
func NewMockSQLTxInterface ¶
func NewMockSQLTxInterface(ctrl *gomock.Controller) *MockSQLTxInterface
NewMockSQLTxInterface creates a new mock instance.
func (*MockSQLTxInterface) Commit ¶
func (m *MockSQLTxInterface) Commit() error
Commit mocks base method.
func (*MockSQLTxInterface) EXPECT ¶
func (m *MockSQLTxInterface) EXPECT() *MockSQLTxInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSQLTxInterface) Rollback ¶
func (m *MockSQLTxInterface) Rollback() error
Rollback mocks base method.
type MockSQLTxInterfaceMockRecorder ¶
type MockSQLTxInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockSQLTxInterfaceMockRecorder is the mock recorder for MockSQLTxInterface.
func (*MockSQLTxInterfaceMockRecorder) Commit ¶
func (mr *MockSQLTxInterfaceMockRecorder) Commit() *gomock.Call
Commit indicates an expected call of Commit.
func (*MockSQLTxInterfaceMockRecorder) Rollback ¶
func (mr *MockSQLTxInterfaceMockRecorder) Rollback() *gomock.Call
Rollback indicates an expected call of Rollback.