Documentation ¶
Overview ¶
Package mock_pathdb is a generated GoMock package.
Index ¶
- type MockDB
- func (m *MockDB) BeginTransaction(arg0 context.Context, arg1 *sql.TxOptions) (pathdb.Transaction, error)
- func (m *MockDB) DeleteExpired(arg0 context.Context, arg1 time.Time) (int, error)
- func (m *MockDB) DeleteSegment(arg0 context.Context, arg1 string) error
- func (m *MockDB) EXPECT() *MockDBMockRecorder
- func (m *MockDB) Get(arg0 context.Context, arg1 *query.Params) (query.Results, error)
- func (m *MockDB) GetAll(arg0 context.Context) (query.Results, error)
- func (m *MockDB) GetNextQuery(arg0 context.Context, arg1, arg2 addr.IA) (time.Time, error)
- func (m *MockDB) Insert(arg0 context.Context, arg1 *segment.Meta) (pathdb.InsertStats, error)
- func (m *MockDB) InsertNextQuery(arg0 context.Context, arg1, arg2 addr.IA, arg3 time.Time) (bool, error)
- func (m *MockDB) InsertWithHPGroupIDs(arg0 context.Context, arg1 *segment.Meta, arg2 []uint64) (pathdb.InsertStats, error)
- type MockDBMockRecorder
- func (mr *MockDBMockRecorder) BeginTransaction(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) DeleteExpired(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) DeleteSegment(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) GetAll(arg0 interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) GetNextQuery(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) Insert(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) InsertNextQuery(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) InsertWithHPGroupIDs(arg0, arg1, arg2 interface{}) *gomock.Call
- type MockReadWrite
- func (m *MockReadWrite) DeleteExpired(arg0 context.Context, arg1 time.Time) (int, error)
- func (m *MockReadWrite) DeleteSegment(arg0 context.Context, arg1 string) error
- func (m *MockReadWrite) EXPECT() *MockReadWriteMockRecorder
- func (m *MockReadWrite) Get(arg0 context.Context, arg1 *query.Params) (query.Results, error)
- func (m *MockReadWrite) GetAll(arg0 context.Context) (query.Results, error)
- func (m *MockReadWrite) GetNextQuery(arg0 context.Context, arg1, arg2 addr.IA) (time.Time, error)
- func (m *MockReadWrite) Insert(arg0 context.Context, arg1 *segment.Meta) (pathdb.InsertStats, error)
- func (m *MockReadWrite) InsertNextQuery(arg0 context.Context, arg1, arg2 addr.IA, arg3 time.Time) (bool, error)
- func (m *MockReadWrite) InsertWithHPGroupIDs(arg0 context.Context, arg1 *segment.Meta, arg2 []uint64) (pathdb.InsertStats, error)
- type MockReadWriteMockRecorder
- func (mr *MockReadWriteMockRecorder) DeleteExpired(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockReadWriteMockRecorder) DeleteSegment(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockReadWriteMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockReadWriteMockRecorder) GetAll(arg0 interface{}) *gomock.Call
- func (mr *MockReadWriteMockRecorder) GetNextQuery(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockReadWriteMockRecorder) Insert(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockReadWriteMockRecorder) InsertNextQuery(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockReadWriteMockRecorder) InsertWithHPGroupIDs(arg0, arg1, arg2 interface{}) *gomock.Call
- type MockTransaction
- func (m *MockTransaction) Commit() error
- func (m *MockTransaction) DeleteExpired(arg0 context.Context, arg1 time.Time) (int, error)
- func (m *MockTransaction) DeleteSegment(arg0 context.Context, arg1 string) error
- func (m *MockTransaction) EXPECT() *MockTransactionMockRecorder
- func (m *MockTransaction) Get(arg0 context.Context, arg1 *query.Params) (query.Results, error)
- func (m *MockTransaction) GetAll(arg0 context.Context) (query.Results, error)
- func (m *MockTransaction) GetNextQuery(arg0 context.Context, arg1, arg2 addr.IA) (time.Time, error)
- func (m *MockTransaction) Insert(arg0 context.Context, arg1 *segment.Meta) (pathdb.InsertStats, error)
- func (m *MockTransaction) InsertNextQuery(arg0 context.Context, arg1, arg2 addr.IA, arg3 time.Time) (bool, error)
- func (m *MockTransaction) InsertWithHPGroupIDs(arg0 context.Context, arg1 *segment.Meta, arg2 []uint64) (pathdb.InsertStats, error)
- func (m *MockTransaction) Rollback() error
- type MockTransactionMockRecorder
- func (mr *MockTransactionMockRecorder) Commit() *gomock.Call
- func (mr *MockTransactionMockRecorder) DeleteExpired(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockTransactionMockRecorder) DeleteSegment(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockTransactionMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockTransactionMockRecorder) GetAll(arg0 interface{}) *gomock.Call
- func (mr *MockTransactionMockRecorder) GetNextQuery(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockTransactionMockRecorder) Insert(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockTransactionMockRecorder) InsertNextQuery(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockTransactionMockRecorder) InsertWithHPGroupIDs(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockTransactionMockRecorder) Rollback() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDB ¶
type MockDB struct {
// contains filtered or unexported fields
}
MockDB is a mock of DB interface.
func NewMockDB ¶
func NewMockDB(ctrl *gomock.Controller) *MockDB
NewMockDB creates a new mock instance.
func (*MockDB) BeginTransaction ¶
func (m *MockDB) BeginTransaction(arg0 context.Context, arg1 *sql.TxOptions) (pathdb.Transaction, error)
BeginTransaction mocks base method.
func (*MockDB) DeleteExpired ¶
DeleteExpired mocks base method.
func (*MockDB) DeleteSegment ¶ added in v0.11.0
DeleteSegment mocks base method.
func (*MockDB) EXPECT ¶
func (m *MockDB) EXPECT() *MockDBMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDB) GetNextQuery ¶
GetNextQuery mocks base method.
type MockDBMockRecorder ¶
type MockDBMockRecorder struct {
// contains filtered or unexported fields
}
MockDBMockRecorder is the mock recorder for MockDB.
func (*MockDBMockRecorder) BeginTransaction ¶
func (mr *MockDBMockRecorder) BeginTransaction(arg0, arg1 interface{}) *gomock.Call
BeginTransaction indicates an expected call of BeginTransaction.
func (*MockDBMockRecorder) DeleteExpired ¶
func (mr *MockDBMockRecorder) DeleteExpired(arg0, arg1 interface{}) *gomock.Call
DeleteExpired indicates an expected call of DeleteExpired.
func (*MockDBMockRecorder) DeleteSegment ¶ added in v0.11.0
func (mr *MockDBMockRecorder) DeleteSegment(arg0, arg1 interface{}) *gomock.Call
DeleteSegment indicates an expected call of DeleteSegment.
func (*MockDBMockRecorder) Get ¶
func (mr *MockDBMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockDBMockRecorder) GetAll ¶
func (mr *MockDBMockRecorder) GetAll(arg0 interface{}) *gomock.Call
GetAll indicates an expected call of GetAll.
func (*MockDBMockRecorder) GetNextQuery ¶
func (mr *MockDBMockRecorder) GetNextQuery(arg0, arg1, arg2 interface{}) *gomock.Call
GetNextQuery indicates an expected call of GetNextQuery.
func (*MockDBMockRecorder) Insert ¶
func (mr *MockDBMockRecorder) Insert(arg0, arg1 interface{}) *gomock.Call
Insert indicates an expected call of Insert.
func (*MockDBMockRecorder) InsertNextQuery ¶
func (mr *MockDBMockRecorder) InsertNextQuery(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
InsertNextQuery indicates an expected call of InsertNextQuery.
func (*MockDBMockRecorder) InsertWithHPGroupIDs ¶
func (mr *MockDBMockRecorder) InsertWithHPGroupIDs(arg0, arg1, arg2 interface{}) *gomock.Call
InsertWithHPGroupIDs indicates an expected call of InsertWithHPGroupIDs.
type MockReadWrite ¶
type MockReadWrite struct {
// contains filtered or unexported fields
}
MockReadWrite is a mock of ReadWrite interface.
func NewMockReadWrite ¶
func NewMockReadWrite(ctrl *gomock.Controller) *MockReadWrite
NewMockReadWrite creates a new mock instance.
func (*MockReadWrite) DeleteExpired ¶
DeleteExpired mocks base method.
func (*MockReadWrite) DeleteSegment ¶ added in v0.11.0
func (m *MockReadWrite) DeleteSegment(arg0 context.Context, arg1 string) error
DeleteSegment mocks base method.
func (*MockReadWrite) EXPECT ¶
func (m *MockReadWrite) EXPECT() *MockReadWriteMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockReadWrite) GetNextQuery ¶
GetNextQuery mocks base method.
func (*MockReadWrite) Insert ¶
func (m *MockReadWrite) Insert(arg0 context.Context, arg1 *segment.Meta) (pathdb.InsertStats, error)
Insert mocks base method.
func (*MockReadWrite) InsertNextQuery ¶
func (m *MockReadWrite) InsertNextQuery(arg0 context.Context, arg1, arg2 addr.IA, arg3 time.Time) (bool, error)
InsertNextQuery mocks base method.
func (*MockReadWrite) InsertWithHPGroupIDs ¶
func (m *MockReadWrite) InsertWithHPGroupIDs(arg0 context.Context, arg1 *segment.Meta, arg2 []uint64) (pathdb.InsertStats, error)
InsertWithHPGroupIDs mocks base method.
type MockReadWriteMockRecorder ¶
type MockReadWriteMockRecorder struct {
// contains filtered or unexported fields
}
MockReadWriteMockRecorder is the mock recorder for MockReadWrite.
func (*MockReadWriteMockRecorder) DeleteExpired ¶
func (mr *MockReadWriteMockRecorder) DeleteExpired(arg0, arg1 interface{}) *gomock.Call
DeleteExpired indicates an expected call of DeleteExpired.
func (*MockReadWriteMockRecorder) DeleteSegment ¶ added in v0.11.0
func (mr *MockReadWriteMockRecorder) DeleteSegment(arg0, arg1 interface{}) *gomock.Call
DeleteSegment indicates an expected call of DeleteSegment.
func (*MockReadWriteMockRecorder) Get ¶
func (mr *MockReadWriteMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockReadWriteMockRecorder) GetAll ¶
func (mr *MockReadWriteMockRecorder) GetAll(arg0 interface{}) *gomock.Call
GetAll indicates an expected call of GetAll.
func (*MockReadWriteMockRecorder) GetNextQuery ¶
func (mr *MockReadWriteMockRecorder) GetNextQuery(arg0, arg1, arg2 interface{}) *gomock.Call
GetNextQuery indicates an expected call of GetNextQuery.
func (*MockReadWriteMockRecorder) Insert ¶
func (mr *MockReadWriteMockRecorder) Insert(arg0, arg1 interface{}) *gomock.Call
Insert indicates an expected call of Insert.
func (*MockReadWriteMockRecorder) InsertNextQuery ¶
func (mr *MockReadWriteMockRecorder) InsertNextQuery(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
InsertNextQuery indicates an expected call of InsertNextQuery.
func (*MockReadWriteMockRecorder) InsertWithHPGroupIDs ¶
func (mr *MockReadWriteMockRecorder) InsertWithHPGroupIDs(arg0, arg1, arg2 interface{}) *gomock.Call
InsertWithHPGroupIDs indicates an expected call of InsertWithHPGroupIDs.
type MockTransaction ¶
type MockTransaction struct {
// contains filtered or unexported fields
}
MockTransaction is a mock of Transaction interface.
func NewMockTransaction ¶
func NewMockTransaction(ctrl *gomock.Controller) *MockTransaction
NewMockTransaction creates a new mock instance.
func (*MockTransaction) DeleteExpired ¶
DeleteExpired mocks base method.
func (*MockTransaction) DeleteSegment ¶ added in v0.11.0
func (m *MockTransaction) DeleteSegment(arg0 context.Context, arg1 string) error
DeleteSegment mocks base method.
func (*MockTransaction) EXPECT ¶
func (m *MockTransaction) EXPECT() *MockTransactionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTransaction) GetNextQuery ¶
GetNextQuery mocks base method.
func (*MockTransaction) Insert ¶
func (m *MockTransaction) Insert(arg0 context.Context, arg1 *segment.Meta) (pathdb.InsertStats, error)
Insert mocks base method.
func (*MockTransaction) InsertNextQuery ¶
func (m *MockTransaction) InsertNextQuery(arg0 context.Context, arg1, arg2 addr.IA, arg3 time.Time) (bool, error)
InsertNextQuery mocks base method.
func (*MockTransaction) InsertWithHPGroupIDs ¶
func (m *MockTransaction) InsertWithHPGroupIDs(arg0 context.Context, arg1 *segment.Meta, arg2 []uint64) (pathdb.InsertStats, error)
InsertWithHPGroupIDs mocks base method.
func (*MockTransaction) Rollback ¶
func (m *MockTransaction) Rollback() error
Rollback mocks base method.
type MockTransactionMockRecorder ¶
type MockTransactionMockRecorder struct {
// contains filtered or unexported fields
}
MockTransactionMockRecorder is the mock recorder for MockTransaction.
func (*MockTransactionMockRecorder) Commit ¶
func (mr *MockTransactionMockRecorder) Commit() *gomock.Call
Commit indicates an expected call of Commit.
func (*MockTransactionMockRecorder) DeleteExpired ¶
func (mr *MockTransactionMockRecorder) DeleteExpired(arg0, arg1 interface{}) *gomock.Call
DeleteExpired indicates an expected call of DeleteExpired.
func (*MockTransactionMockRecorder) DeleteSegment ¶ added in v0.11.0
func (mr *MockTransactionMockRecorder) DeleteSegment(arg0, arg1 interface{}) *gomock.Call
DeleteSegment indicates an expected call of DeleteSegment.
func (*MockTransactionMockRecorder) Get ¶
func (mr *MockTransactionMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockTransactionMockRecorder) GetAll ¶
func (mr *MockTransactionMockRecorder) GetAll(arg0 interface{}) *gomock.Call
GetAll indicates an expected call of GetAll.
func (*MockTransactionMockRecorder) GetNextQuery ¶
func (mr *MockTransactionMockRecorder) GetNextQuery(arg0, arg1, arg2 interface{}) *gomock.Call
GetNextQuery indicates an expected call of GetNextQuery.
func (*MockTransactionMockRecorder) Insert ¶
func (mr *MockTransactionMockRecorder) Insert(arg0, arg1 interface{}) *gomock.Call
Insert indicates an expected call of Insert.
func (*MockTransactionMockRecorder) InsertNextQuery ¶
func (mr *MockTransactionMockRecorder) InsertNextQuery(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
InsertNextQuery indicates an expected call of InsertNextQuery.
func (*MockTransactionMockRecorder) InsertWithHPGroupIDs ¶
func (mr *MockTransactionMockRecorder) InsertWithHPGroupIDs(arg0, arg1, arg2 interface{}) *gomock.Call
InsertWithHPGroupIDs indicates an expected call of InsertWithHPGroupIDs.
func (*MockTransactionMockRecorder) Rollback ¶
func (mr *MockTransactionMockRecorder) Rollback() *gomock.Call
Rollback indicates an expected call of Rollback.