Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: github.com/conduitio/conduit/pkg/foundation/database (interfaces: DB)
Generated by this command:
mockgen -destination=mock/database.go -package=mock -mock_names=DB=DB . DB
Package mock is a generated GoMock package.
Index ¶
- type DB
- func (m *DB) Close() error
- func (m *DB) EXPECT() *DBMockRecorder
- func (m *DB) Get(arg0 context.Context, arg1 string) ([]byte, error)
- func (m *DB) GetKeys(arg0 context.Context, arg1 string) ([]string, error)
- func (m *DB) NewTransaction(arg0 context.Context, arg1 bool) (database.Transaction, context.Context, error)
- func (m *DB) Ping(arg0 context.Context) error
- func (m *DB) Set(arg0 context.Context, arg1 string, arg2 []byte) error
- type DBMockRecorder
- func (mr *DBMockRecorder) Close() *gomock.Call
- func (mr *DBMockRecorder) Get(arg0, arg1 any) *gomock.Call
- func (mr *DBMockRecorder) GetKeys(arg0, arg1 any) *gomock.Call
- func (mr *DBMockRecorder) NewTransaction(arg0, arg1 any) *gomock.Call
- func (mr *DBMockRecorder) Ping(arg0 any) *gomock.Call
- func (mr *DBMockRecorder) Set(arg0, arg1, arg2 any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB is a mock of DB interface.
func (*DB) EXPECT ¶
func (m *DB) EXPECT() *DBMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type DBMockRecorder ¶
type DBMockRecorder struct {
// contains filtered or unexported fields
}
DBMockRecorder is the mock recorder for DB.
func (*DBMockRecorder) Close ¶
func (mr *DBMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*DBMockRecorder) Get ¶
func (mr *DBMockRecorder) Get(arg0, arg1 any) *gomock.Call
Get indicates an expected call of Get.
func (*DBMockRecorder) GetKeys ¶
func (mr *DBMockRecorder) GetKeys(arg0, arg1 any) *gomock.Call
GetKeys indicates an expected call of GetKeys.
func (*DBMockRecorder) NewTransaction ¶
func (mr *DBMockRecorder) NewTransaction(arg0, arg1 any) *gomock.Call
NewTransaction indicates an expected call of NewTransaction.
Click to show internal directories.
Click to hide internal directories.