Documentation ¶
Overview ¶
Package daomocks is a generated GoMock package.
Index ¶
- type MockExecutionDAO
- func (m *MockExecutionDAO) Create(ctx context.Context, tid int64) (int64, error)
- func (m *MockExecutionDAO) EXPECT() *MockExecutionDAOMockRecorder
- func (m *MockExecutionDAO) GetLastExecution(ctx context.Context, tid int64) (task.Execution, error)
- func (m *MockExecutionDAO) Update(ctx context.Context, eid int64, status task.ExecStatus, progress int) error
- func (m *MockExecutionDAO) Upsert(ctx context.Context, id int64, status task.ExecStatus, progress uint8) (int64, error)
- type MockExecutionDAOMockRecorder
- func (mr *MockExecutionDAOMockRecorder) Create(ctx, tid any) *gomock.Call
- func (mr *MockExecutionDAOMockRecorder) GetLastExecution(ctx, tid any) *gomock.Call
- func (mr *MockExecutionDAOMockRecorder) Update(ctx, eid, status, progress any) *gomock.Call
- func (mr *MockExecutionDAOMockRecorder) Upsert(ctx, id, status, progress any) *gomock.Call
- type MockTaskCfgRepository
- func (m *MockTaskCfgRepository) Add(ctx context.Context, t task.Task) error
- func (m *MockTaskCfgRepository) EXPECT() *MockTaskCfgRepositoryMockRecorder
- func (m *MockTaskCfgRepository) Stop(ctx context.Context, id int64) error
- func (m *MockTaskCfgRepository) UpdateNextTime(ctx context.Context, id int64, next time.Time) error
- type MockTaskCfgRepositoryMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockExecutionDAO ¶
type MockExecutionDAO struct {
// contains filtered or unexported fields
}
MockExecutionDAO is a mock of ExecutionDAO interface.
func NewMockExecutionDAO ¶
func NewMockExecutionDAO(ctrl *gomock.Controller) *MockExecutionDAO
NewMockExecutionDAO creates a new mock instance.
func (*MockExecutionDAO) EXPECT ¶
func (m *MockExecutionDAO) EXPECT() *MockExecutionDAOMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockExecutionDAO) GetLastExecution ¶
GetLastExecution mocks base method.
func (*MockExecutionDAO) Update ¶
func (m *MockExecutionDAO) Update(ctx context.Context, eid int64, status task.ExecStatus, progress int) error
Update mocks base method.
type MockExecutionDAOMockRecorder ¶
type MockExecutionDAOMockRecorder struct {
// contains filtered or unexported fields
}
MockExecutionDAOMockRecorder is the mock recorder for MockExecutionDAO.
func (*MockExecutionDAOMockRecorder) Create ¶
func (mr *MockExecutionDAOMockRecorder) Create(ctx, tid any) *gomock.Call
Create indicates an expected call of Create.
func (*MockExecutionDAOMockRecorder) GetLastExecution ¶
func (mr *MockExecutionDAOMockRecorder) GetLastExecution(ctx, tid any) *gomock.Call
GetLastExecution indicates an expected call of GetLastExecution.
type MockTaskCfgRepository ¶
type MockTaskCfgRepository struct {
// contains filtered or unexported fields
}
MockTaskCfgRepository is a mock of TaskCfgRepository interface.
func NewMockTaskCfgRepository ¶
func NewMockTaskCfgRepository(ctrl *gomock.Controller) *MockTaskCfgRepository
NewMockTaskCfgRepository creates a new mock instance.
func (*MockTaskCfgRepository) EXPECT ¶
func (m *MockTaskCfgRepository) EXPECT() *MockTaskCfgRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTaskCfgRepository) Stop ¶
func (m *MockTaskCfgRepository) Stop(ctx context.Context, id int64) error
Stop mocks base method.
func (*MockTaskCfgRepository) UpdateNextTime ¶
UpdateNextTime mocks base method.
type MockTaskCfgRepositoryMockRecorder ¶
type MockTaskCfgRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockTaskCfgRepositoryMockRecorder is the mock recorder for MockTaskCfgRepository.
func (*MockTaskCfgRepositoryMockRecorder) Add ¶
func (mr *MockTaskCfgRepositoryMockRecorder) Add(ctx, t any) *gomock.Call
Add indicates an expected call of Add.
func (*MockTaskCfgRepositoryMockRecorder) Stop ¶
func (mr *MockTaskCfgRepositoryMockRecorder) Stop(ctx, id any) *gomock.Call
Stop indicates an expected call of Stop.
func (*MockTaskCfgRepositoryMockRecorder) UpdateNextTime ¶
func (mr *MockTaskCfgRepositoryMockRecorder) UpdateNextTime(ctx, id, next any) *gomock.Call
UpdateNextTime indicates an expected call of UpdateNextTime.