Documentation
¶
Index ¶
- type Fetcher
- type Fetcher_Expecter
- type Fetcher_GetJob_Call
- func (_c *Fetcher_GetJob_Call) Return(_a0 types.Job, _a1 error) *Fetcher_GetJob_Call
- func (_c *Fetcher_GetJob_Call) Run(run func(ctx context.Context, id [32]byte)) *Fetcher_GetJob_Call
- func (_c *Fetcher_GetJob_Call) RunAndReturn(run func(context.Context, [32]byte) (types.Job, error)) *Fetcher_GetJob_Call
- type Fetcher_GetJobs_Call
- type Fetcher_Next_Call
- type MetaScheduledIdsFetcher
- type MetaScheduledIdsFetcher_Expecter
- type MetaScheduledIdsFetcher_GetMetaScheduledJobIDs_Call
- func (_c *MetaScheduledIdsFetcher_GetMetaScheduledJobIDs_Call) Return(_a0 [][32]byte, _a1 error) *MetaScheduledIdsFetcher_GetMetaScheduledJobIDs_Call
- func (_c *MetaScheduledIdsFetcher_GetMetaScheduledJobIDs_Call) Run(run func(ctx context.Context)) *MetaScheduledIdsFetcher_GetMetaScheduledJobIDs_Call
- func (_c *MetaScheduledIdsFetcher_GetMetaScheduledJobIDs_Call) RunAndReturn(run func(context.Context) ([][32]byte, error)) *MetaScheduledIdsFetcher_GetMetaScheduledJobIDs_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fetcher ¶
Fetcher is an autogenerated mock type for the Fetcher type
func NewFetcher ¶
NewFetcher creates a new instance of Fetcher. 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 (*Fetcher) EXPECT ¶
func (_m *Fetcher) EXPECT() *Fetcher_Expecter
type Fetcher_Expecter ¶
type Fetcher_Expecter struct {
// contains filtered or unexported fields
}
func (*Fetcher_Expecter) GetJob ¶
func (_e *Fetcher_Expecter) GetJob(ctx interface{}, id interface{}) *Fetcher_GetJob_Call
GetJob is a helper method to define mock.On call
- ctx context.Context
- id [32]byte
func (*Fetcher_Expecter) GetJobs ¶
func (_e *Fetcher_Expecter) GetJobs(ctx interface{}) *Fetcher_GetJobs_Call
GetJobs is a helper method to define mock.On call
- ctx context.Context
func (*Fetcher_Expecter) Next ¶ added in v1.5.4
func (_e *Fetcher_Expecter) Next(ctx interface{}, it interface{}) *Fetcher_Next_Call
Next is a helper method to define mock.On call
- ctx context.Context
- it job.LazyIterator
type Fetcher_GetJob_Call ¶
Fetcher_GetJob_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetJob'
func (*Fetcher_GetJob_Call) Return ¶
func (_c *Fetcher_GetJob_Call) Return(_a0 types.Job, _a1 error) *Fetcher_GetJob_Call
func (*Fetcher_GetJob_Call) Run ¶
func (_c *Fetcher_GetJob_Call) Run(run func(ctx context.Context, id [32]byte)) *Fetcher_GetJob_Call
func (*Fetcher_GetJob_Call) RunAndReturn ¶
func (_c *Fetcher_GetJob_Call) RunAndReturn(run func(context.Context, [32]byte) (types.Job, error)) *Fetcher_GetJob_Call
type Fetcher_GetJobs_Call ¶
Fetcher_GetJobs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetJobs'
func (*Fetcher_GetJobs_Call) Return ¶
func (_c *Fetcher_GetJobs_Call) Return(_a0 *job.Iterator, _a1 error) *Fetcher_GetJobs_Call
func (*Fetcher_GetJobs_Call) Run ¶
func (_c *Fetcher_GetJobs_Call) Run(run func(ctx context.Context)) *Fetcher_GetJobs_Call
func (*Fetcher_GetJobs_Call) RunAndReturn ¶
func (_c *Fetcher_GetJobs_Call) RunAndReturn(run func(context.Context) (*job.Iterator, error)) *Fetcher_GetJobs_Call
type Fetcher_Next_Call ¶ added in v1.5.4
Fetcher_Next_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Next'
func (*Fetcher_Next_Call) Return ¶ added in v1.5.4
func (_c *Fetcher_Next_Call) Return(ok bool) *Fetcher_Next_Call
func (*Fetcher_Next_Call) Run ¶ added in v1.5.4
func (_c *Fetcher_Next_Call) Run(run func(ctx context.Context, it job.LazyIterator)) *Fetcher_Next_Call
func (*Fetcher_Next_Call) RunAndReturn ¶ added in v1.5.4
func (_c *Fetcher_Next_Call) RunAndReturn(run func(context.Context, job.LazyIterator) bool) *Fetcher_Next_Call
type MetaScheduledIdsFetcher ¶
MetaScheduledIdsFetcher is an autogenerated mock type for the MetaScheduledIdsFetcher type
func NewMetaScheduledIdsFetcher ¶
func NewMetaScheduledIdsFetcher(t interface { mock.TestingT Cleanup(func()) }) *MetaScheduledIdsFetcher
NewMetaScheduledIdsFetcher creates a new instance of MetaScheduledIdsFetcher. 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 (*MetaScheduledIdsFetcher) EXPECT ¶
func (_m *MetaScheduledIdsFetcher) EXPECT() *MetaScheduledIdsFetcher_Expecter
func (*MetaScheduledIdsFetcher) GetMetaScheduledJobIDs ¶
func (_m *MetaScheduledIdsFetcher) GetMetaScheduledJobIDs(ctx context.Context) ([][32]byte, error)
GetMetaScheduledJobIDs provides a mock function with given fields: ctx
type MetaScheduledIdsFetcher_Expecter ¶
type MetaScheduledIdsFetcher_Expecter struct {
// contains filtered or unexported fields
}
func (*MetaScheduledIdsFetcher_Expecter) GetMetaScheduledJobIDs ¶
func (_e *MetaScheduledIdsFetcher_Expecter) GetMetaScheduledJobIDs(ctx interface{}) *MetaScheduledIdsFetcher_GetMetaScheduledJobIDs_Call
GetMetaScheduledJobIDs is a helper method to define mock.On call
- ctx context.Context
type MetaScheduledIdsFetcher_GetMetaScheduledJobIDs_Call ¶
MetaScheduledIdsFetcher_GetMetaScheduledJobIDs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMetaScheduledJobIDs'
func (*MetaScheduledIdsFetcher_GetMetaScheduledJobIDs_Call) Return ¶
func (_c *MetaScheduledIdsFetcher_GetMetaScheduledJobIDs_Call) Return(_a0 [][32]byte, _a1 error) *MetaScheduledIdsFetcher_GetMetaScheduledJobIDs_Call
func (*MetaScheduledIdsFetcher_GetMetaScheduledJobIDs_Call) Run ¶
func (_c *MetaScheduledIdsFetcher_GetMetaScheduledJobIDs_Call) Run(run func(ctx context.Context)) *MetaScheduledIdsFetcher_GetMetaScheduledJobIDs_Call
func (*MetaScheduledIdsFetcher_GetMetaScheduledJobIDs_Call) RunAndReturn ¶
func (_c *MetaScheduledIdsFetcher_GetMetaScheduledJobIDs_Call) RunAndReturn(run func(context.Context) ([][32]byte, error)) *MetaScheduledIdsFetcher_GetMetaScheduledJobIDs_Call