Documentation
¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: github.com/go-co-op/gocron/v2 (interfaces: Elector,Locker,Lock)
Generated by this command:
mockgen -destination=mocks/distributed.go -package=gocronmocks . Elector,Locker,Lock
Package gocronmocks is a generated GoMock package.
Code generated by MockGen. DO NOT EDIT. Source: github.com/go-co-op/gocron/v2 (interfaces: Job)
Generated by this command:
mockgen -destination=mocks/job.go -package=gocronmocks . Job
Package gocronmocks is a generated GoMock package.
Code generated by MockGen. DO NOT EDIT. Source: github.com/go-co-op/gocron/v2 (interfaces: Logger)
Generated by this command:
mockgen -destination=mocks/logger.go -package=gocronmocks . Logger
Package gocronmocks is a generated GoMock package.
Code generated by MockGen. DO NOT EDIT. Source: github.com/go-co-op/gocron/v2 (interfaces: Scheduler)
Generated by this command:
mockgen -destination=mocks/scheduler.go -package=gocronmocks . Scheduler
Package gocronmocks is a generated GoMock package.
Index ¶
- type MockElector
- type MockElectorMockRecorder
- type MockJob
- func (m *MockJob) EXPECT() *MockJobMockRecorder
- func (m *MockJob) ID() uuid.UUID
- func (m *MockJob) LastRun() (time.Time, error)
- func (m *MockJob) Name() string
- func (m *MockJob) NextRun() (time.Time, error)
- func (m *MockJob) NextRuns(arg0 int) ([]time.Time, error)
- func (m *MockJob) RunNow() error
- func (m *MockJob) Tags() []string
- type MockJobMockRecorder
- func (mr *MockJobMockRecorder) ID() *gomock.Call
- func (mr *MockJobMockRecorder) LastRun() *gomock.Call
- func (mr *MockJobMockRecorder) Name() *gomock.Call
- func (mr *MockJobMockRecorder) NextRun() *gomock.Call
- func (mr *MockJobMockRecorder) NextRuns(arg0 any) *gomock.Call
- func (mr *MockJobMockRecorder) RunNow() *gomock.Call
- func (mr *MockJobMockRecorder) Tags() *gomock.Call
- type MockLock
- type MockLockMockRecorder
- type MockLocker
- type MockLockerMockRecorder
- type MockLogger
- type MockLoggerMockRecorder
- func (mr *MockLoggerMockRecorder) Debug(arg0 any, arg1 ...any) *gomock.Call
- func (mr *MockLoggerMockRecorder) Error(arg0 any, arg1 ...any) *gomock.Call
- func (mr *MockLoggerMockRecorder) Info(arg0 any, arg1 ...any) *gomock.Call
- func (mr *MockLoggerMockRecorder) Warn(arg0 any, arg1 ...any) *gomock.Call
- type MockScheduler
- func (m *MockScheduler) EXPECT() *MockSchedulerMockRecorder
- func (m *MockScheduler) Jobs() []gocron.Job
- func (m *MockScheduler) JobsWaitingInQueue() int
- func (m *MockScheduler) NewJob(arg0 gocron.JobDefinition, arg1 gocron.Task, arg2 ...gocron.JobOption) (gocron.Job, error)
- func (m *MockScheduler) RemoveByTags(arg0 ...string)
- func (m *MockScheduler) RemoveJob(arg0 uuid.UUID) error
- func (m *MockScheduler) Shutdown() error
- func (m *MockScheduler) Start()
- func (m *MockScheduler) StopJobs() error
- func (m *MockScheduler) Update(arg0 uuid.UUID, arg1 gocron.JobDefinition, arg2 gocron.Task, ...) (gocron.Job, error)
- type MockSchedulerMockRecorder
- func (mr *MockSchedulerMockRecorder) Jobs() *gomock.Call
- func (mr *MockSchedulerMockRecorder) JobsWaitingInQueue() *gomock.Call
- func (mr *MockSchedulerMockRecorder) NewJob(arg0, arg1 any, arg2 ...any) *gomock.Call
- func (mr *MockSchedulerMockRecorder) RemoveByTags(arg0 ...any) *gomock.Call
- func (mr *MockSchedulerMockRecorder) RemoveJob(arg0 any) *gomock.Call
- func (mr *MockSchedulerMockRecorder) Shutdown() *gomock.Call
- func (mr *MockSchedulerMockRecorder) Start() *gomock.Call
- func (mr *MockSchedulerMockRecorder) StopJobs() *gomock.Call
- func (mr *MockSchedulerMockRecorder) Update(arg0, arg1, arg2 any, arg3 ...any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockElector ¶
type MockElector struct {
// contains filtered or unexported fields
}
MockElector is a mock of Elector interface.
func NewMockElector ¶
func NewMockElector(ctrl *gomock.Controller) *MockElector
NewMockElector creates a new mock instance.
func (*MockElector) EXPECT ¶
func (m *MockElector) EXPECT() *MockElectorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockElectorMockRecorder ¶
type MockElectorMockRecorder struct {
// contains filtered or unexported fields
}
MockElectorMockRecorder is the mock recorder for MockElector.
type MockJob ¶
type MockJob struct {
// contains filtered or unexported fields
}
MockJob is a mock of Job interface.
func NewMockJob ¶
func NewMockJob(ctrl *gomock.Controller) *MockJob
NewMockJob creates a new mock instance.
func (*MockJob) EXPECT ¶
func (m *MockJob) EXPECT() *MockJobMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockJobMockRecorder ¶
type MockJobMockRecorder struct {
// contains filtered or unexported fields
}
MockJobMockRecorder is the mock recorder for MockJob.
func (*MockJobMockRecorder) ID ¶
func (mr *MockJobMockRecorder) ID() *gomock.Call
ID indicates an expected call of ID.
func (*MockJobMockRecorder) LastRun ¶
func (mr *MockJobMockRecorder) LastRun() *gomock.Call
LastRun indicates an expected call of LastRun.
func (*MockJobMockRecorder) Name ¶
func (mr *MockJobMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockJobMockRecorder) NextRun ¶
func (mr *MockJobMockRecorder) NextRun() *gomock.Call
NextRun indicates an expected call of NextRun.
func (*MockJobMockRecorder) NextRuns ¶
func (mr *MockJobMockRecorder) NextRuns(arg0 any) *gomock.Call
NextRuns indicates an expected call of NextRuns.
func (*MockJobMockRecorder) RunNow ¶
func (mr *MockJobMockRecorder) RunNow() *gomock.Call
RunNow indicates an expected call of RunNow.
func (*MockJobMockRecorder) Tags ¶
func (mr *MockJobMockRecorder) Tags() *gomock.Call
Tags indicates an expected call of Tags.
type MockLock ¶
type MockLock struct {
// contains filtered or unexported fields
}
MockLock is a mock of Lock interface.
func NewMockLock ¶
func NewMockLock(ctrl *gomock.Controller) *MockLock
NewMockLock creates a new mock instance.
func (*MockLock) EXPECT ¶
func (m *MockLock) EXPECT() *MockLockMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockLockMockRecorder ¶
type MockLockMockRecorder struct {
// contains filtered or unexported fields
}
MockLockMockRecorder is the mock recorder for MockLock.
type MockLocker ¶
type MockLocker struct {
// contains filtered or unexported fields
}
MockLocker is a mock of Locker interface.
func NewMockLocker ¶
func NewMockLocker(ctrl *gomock.Controller) *MockLocker
NewMockLocker creates a new mock instance.
func (*MockLocker) EXPECT ¶
func (m *MockLocker) EXPECT() *MockLockerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockLockerMockRecorder ¶
type MockLockerMockRecorder struct {
// contains filtered or unexported fields
}
MockLockerMockRecorder is the mock recorder for MockLocker.
type MockLogger ¶
type MockLogger struct {
// contains filtered or unexported fields
}
MockLogger is a mock of Logger interface.
func NewMockLogger ¶
func NewMockLogger(ctrl *gomock.Controller) *MockLogger
NewMockLogger creates a new mock instance.
func (*MockLogger) Debug ¶
func (m *MockLogger) Debug(arg0 string, arg1 ...any)
Debug mocks base method.
func (*MockLogger) EXPECT ¶
func (m *MockLogger) EXPECT() *MockLoggerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockLogger) Error ¶
func (m *MockLogger) Error(arg0 string, arg1 ...any)
Error mocks base method.
func (*MockLogger) Info ¶
func (m *MockLogger) Info(arg0 string, arg1 ...any)
Info mocks base method.
func (*MockLogger) Warn ¶
func (m *MockLogger) Warn(arg0 string, arg1 ...any)
Warn mocks base method.
type MockLoggerMockRecorder ¶
type MockLoggerMockRecorder struct {
// contains filtered or unexported fields
}
MockLoggerMockRecorder is the mock recorder for MockLogger.
func (*MockLoggerMockRecorder) Debug ¶
func (mr *MockLoggerMockRecorder) Debug(arg0 any, arg1 ...any) *gomock.Call
Debug indicates an expected call of Debug.
func (*MockLoggerMockRecorder) Error ¶
func (mr *MockLoggerMockRecorder) Error(arg0 any, arg1 ...any) *gomock.Call
Error indicates an expected call of Error.
type MockScheduler ¶
type MockScheduler struct {
// contains filtered or unexported fields
}
MockScheduler is a mock of Scheduler interface.
func NewMockScheduler ¶
func NewMockScheduler(ctrl *gomock.Controller) *MockScheduler
NewMockScheduler creates a new mock instance.
func (*MockScheduler) EXPECT ¶
func (m *MockScheduler) EXPECT() *MockSchedulerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockScheduler) JobsWaitingInQueue ¶
func (m *MockScheduler) JobsWaitingInQueue() int
JobsWaitingInQueue mocks base method.
func (*MockScheduler) NewJob ¶
func (m *MockScheduler) NewJob(arg0 gocron.JobDefinition, arg1 gocron.Task, arg2 ...gocron.JobOption) (gocron.Job, error)
NewJob mocks base method.
func (*MockScheduler) RemoveByTags ¶
func (m *MockScheduler) RemoveByTags(arg0 ...string)
RemoveByTags mocks base method.
func (*MockScheduler) RemoveJob ¶
func (m *MockScheduler) RemoveJob(arg0 uuid.UUID) error
RemoveJob mocks base method.
func (*MockScheduler) Shutdown ¶
func (m *MockScheduler) Shutdown() error
Shutdown mocks base method.
func (*MockScheduler) StopJobs ¶
func (m *MockScheduler) StopJobs() error
StopJobs mocks base method.
type MockSchedulerMockRecorder ¶
type MockSchedulerMockRecorder struct {
// contains filtered or unexported fields
}
MockSchedulerMockRecorder is the mock recorder for MockScheduler.
func (*MockSchedulerMockRecorder) Jobs ¶
func (mr *MockSchedulerMockRecorder) Jobs() *gomock.Call
Jobs indicates an expected call of Jobs.
func (*MockSchedulerMockRecorder) JobsWaitingInQueue ¶
func (mr *MockSchedulerMockRecorder) JobsWaitingInQueue() *gomock.Call
JobsWaitingInQueue indicates an expected call of JobsWaitingInQueue.
func (*MockSchedulerMockRecorder) NewJob ¶
func (mr *MockSchedulerMockRecorder) NewJob(arg0, arg1 any, arg2 ...any) *gomock.Call
NewJob indicates an expected call of NewJob.
func (*MockSchedulerMockRecorder) RemoveByTags ¶
func (mr *MockSchedulerMockRecorder) RemoveByTags(arg0 ...any) *gomock.Call
RemoveByTags indicates an expected call of RemoveByTags.
func (*MockSchedulerMockRecorder) RemoveJob ¶
func (mr *MockSchedulerMockRecorder) RemoveJob(arg0 any) *gomock.Call
RemoveJob indicates an expected call of RemoveJob.
func (*MockSchedulerMockRecorder) Shutdown ¶
func (mr *MockSchedulerMockRecorder) Shutdown() *gomock.Call
Shutdown indicates an expected call of Shutdown.
func (*MockSchedulerMockRecorder) Start ¶
func (mr *MockSchedulerMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start.
func (*MockSchedulerMockRecorder) StopJobs ¶
func (mr *MockSchedulerMockRecorder) StopJobs() *gomock.Call
StopJobs indicates an expected call of StopJobs.