Documentation ¶
Index ¶
- type JobDB
- func (_m *JobDB) GetJobById(_a0 context.Context, _a1 string) (*types.Job, error)
- func (_m *JobDB) GetJobsFromDateRange(_a0 context.Context, _a1 time.Time, _a2 time.Time, _a3 string) ([]*types.Job, error)
- func (_m *JobDB) ModifiedJobsCh(_a0 context.Context) <-chan []*types.Job
- func (_m *JobDB) PutJob(_a0 context.Context, _a1 *types.Job) error
- func (_m *JobDB) PutJobs(_a0 context.Context, _a1 []*types.Job) error
- func (_m *JobDB) PutJobsInChunks(_a0 context.Context, _a1 []*types.Job) error
- func (_m *JobDB) SearchJobs(_a0 context.Context, _a1 *db.JobSearchParams) ([]*types.Job, error)
- type RemoteDB
- func (_m *RemoteDB) DeleteCommitComment(_a0 context.Context, _a1 *types.CommitComment) error
- func (_m *RemoteDB) DeleteTaskComment(_a0 context.Context, _a1 *types.TaskComment) error
- func (_m *RemoteDB) DeleteTaskSpecComment(_a0 context.Context, _a1 *types.TaskSpecComment) error
- func (_m *RemoteDB) GetCommentsForRepos(ctx context.Context, repos []string, from time.Time) ([]*types.RepoComments, error)
- func (_m *RemoteDB) GetJobById(_a0 context.Context, _a1 string) (*types.Job, error)
- func (_m *RemoteDB) GetJobsFromDateRange(_a0 context.Context, _a1 time.Time, _a2 time.Time, _a3 string) ([]*types.Job, error)
- func (_m *RemoteDB) GetTaskById(_a0 context.Context, _a1 string) (*types.Task, error)
- func (_m *RemoteDB) GetTasksFromDateRange(_a0 context.Context, _a1 time.Time, _a2 time.Time, _a3 string) ([]*types.Task, error)
- func (_m *RemoteDB) ModifiedCommitCommentsCh(_a0 context.Context) <-chan []*types.CommitComment
- func (_m *RemoteDB) ModifiedJobsCh(_a0 context.Context) <-chan []*types.Job
- func (_m *RemoteDB) ModifiedTaskCommentsCh(_a0 context.Context) <-chan []*types.TaskComment
- func (_m *RemoteDB) ModifiedTaskSpecCommentsCh(_a0 context.Context) <-chan []*types.TaskSpecComment
- func (_m *RemoteDB) ModifiedTasksCh(_a0 context.Context) <-chan []*types.Task
- func (_m *RemoteDB) PutCommitComment(_a0 context.Context, _a1 *types.CommitComment) error
- func (_m *RemoteDB) PutTaskComment(_a0 context.Context, _a1 *types.TaskComment) error
- func (_m *RemoteDB) PutTaskSpecComment(_a0 context.Context, _a1 *types.TaskSpecComment) error
- func (_m *RemoteDB) SearchJobs(_a0 context.Context, _a1 *db.JobSearchParams) ([]*types.Job, error)
- func (_m *RemoteDB) SearchTasks(_a0 context.Context, _a1 *db.TaskSearchParams) ([]*types.Task, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JobDB ¶
JobDB is an autogenerated mock type for the JobDB type
func NewJobDB ¶
NewJobDB creates a new instance of JobDB. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*JobDB) GetJobById ¶
GetJobById provides a mock function with given fields: _a0, _a1
func (*JobDB) GetJobsFromDateRange ¶
func (_m *JobDB) GetJobsFromDateRange(_a0 context.Context, _a1 time.Time, _a2 time.Time, _a3 string) ([]*types.Job, error)
GetJobsFromDateRange provides a mock function with given fields: _a0, _a1, _a2, _a3
func (*JobDB) ModifiedJobsCh ¶
ModifiedJobsCh provides a mock function with given fields: _a0
func (*JobDB) PutJobsInChunks ¶
PutJobsInChunks provides a mock function with given fields: _a0, _a1
func (*JobDB) SearchJobs ¶
SearchJobs provides a mock function with given fields: _a0, _a1
type RemoteDB ¶
RemoteDB is an autogenerated mock type for the RemoteDB type
func NewRemoteDB ¶
NewRemoteDB creates a new instance of RemoteDB. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*RemoteDB) DeleteCommitComment ¶
DeleteCommitComment provides a mock function with given fields: _a0, _a1
func (*RemoteDB) DeleteTaskComment ¶
DeleteTaskComment provides a mock function with given fields: _a0, _a1
func (*RemoteDB) DeleteTaskSpecComment ¶
DeleteTaskSpecComment provides a mock function with given fields: _a0, _a1
func (*RemoteDB) GetCommentsForRepos ¶
func (_m *RemoteDB) GetCommentsForRepos(ctx context.Context, repos []string, from time.Time) ([]*types.RepoComments, error)
GetCommentsForRepos provides a mock function with given fields: ctx, repos, from
func (*RemoteDB) GetJobById ¶
GetJobById provides a mock function with given fields: _a0, _a1
func (*RemoteDB) GetJobsFromDateRange ¶
func (_m *RemoteDB) GetJobsFromDateRange(_a0 context.Context, _a1 time.Time, _a2 time.Time, _a3 string) ([]*types.Job, error)
GetJobsFromDateRange provides a mock function with given fields: _a0, _a1, _a2, _a3
func (*RemoteDB) GetTaskById ¶
GetTaskById provides a mock function with given fields: _a0, _a1
func (*RemoteDB) GetTasksFromDateRange ¶
func (_m *RemoteDB) GetTasksFromDateRange(_a0 context.Context, _a1 time.Time, _a2 time.Time, _a3 string) ([]*types.Task, error)
GetTasksFromDateRange provides a mock function with given fields: _a0, _a1, _a2, _a3
func (*RemoteDB) ModifiedCommitCommentsCh ¶
func (_m *RemoteDB) ModifiedCommitCommentsCh(_a0 context.Context) <-chan []*types.CommitComment
ModifiedCommitCommentsCh provides a mock function with given fields: _a0
func (*RemoteDB) ModifiedJobsCh ¶
ModifiedJobsCh provides a mock function with given fields: _a0
func (*RemoteDB) ModifiedTaskCommentsCh ¶
func (_m *RemoteDB) ModifiedTaskCommentsCh(_a0 context.Context) <-chan []*types.TaskComment
ModifiedTaskCommentsCh provides a mock function with given fields: _a0
func (*RemoteDB) ModifiedTaskSpecCommentsCh ¶
func (_m *RemoteDB) ModifiedTaskSpecCommentsCh(_a0 context.Context) <-chan []*types.TaskSpecComment
ModifiedTaskSpecCommentsCh provides a mock function with given fields: _a0
func (*RemoteDB) ModifiedTasksCh ¶
ModifiedTasksCh provides a mock function with given fields: _a0
func (*RemoteDB) PutCommitComment ¶
PutCommitComment provides a mock function with given fields: _a0, _a1
func (*RemoteDB) PutTaskComment ¶
PutTaskComment provides a mock function with given fields: _a0, _a1
func (*RemoteDB) PutTaskSpecComment ¶
PutTaskSpecComment provides a mock function with given fields: _a0, _a1
func (*RemoteDB) SearchJobs ¶
SearchJobs provides a mock function with given fields: _a0, _a1
func (*RemoteDB) SearchTasks ¶
func (_m *RemoteDB) SearchTasks(_a0 context.Context, _a1 *db.TaskSearchParams) ([]*types.Task, error)
SearchTasks provides a mock function with given fields: _a0, _a1