cron

package
v0.0.0-...-c8e7285 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package cron is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job interface {
	LastRun() time.Time
	RunCount() int
	NextRun() time.Time
}

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.

func (*MockJob) LastRun

func (m *MockJob) LastRun() time.Time

LastRun mocks base method.

func (*MockJob) NextRun

func (m *MockJob) NextRun() time.Time

NextRun mocks base method.

func (*MockJob) RunCount

func (m *MockJob) RunCount() int

RunCount mocks base method.

type MockJobMockRecorder

type MockJobMockRecorder struct {
	// contains filtered or unexported fields
}

MockJobMockRecorder is the mock recorder for MockJob.

func (*MockJobMockRecorder) LastRun

func (mr *MockJobMockRecorder) LastRun() *gomock.Call

LastRun indicates an expected call of LastRun.

func (*MockJobMockRecorder) NextRun

func (mr *MockJobMockRecorder) NextRun() *gomock.Call

NextRun indicates an expected call of NextRun.

func (*MockJobMockRecorder) RunCount

func (mr *MockJobMockRecorder) RunCount() *gomock.Call

RunCount indicates an expected call of RunCount.

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) DoEvery

func (m *MockScheduler) DoEvery(interval time.Duration, singletonMode bool, jobFun interface{}) (Job, error)

DoEvery mocks base method.

func (*MockScheduler) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockScheduler) RunAll

func (m *MockScheduler) RunAll()

RunAll mocks base method.

type MockSchedulerMockRecorder

type MockSchedulerMockRecorder struct {
	// contains filtered or unexported fields
}

MockSchedulerMockRecorder is the mock recorder for MockScheduler.

func (*MockSchedulerMockRecorder) DoEvery

func (mr *MockSchedulerMockRecorder) DoEvery(interval, singletonMode, jobFun interface{}) *gomock.Call

DoEvery indicates an expected call of DoEvery.

func (*MockSchedulerMockRecorder) RunAll

func (mr *MockSchedulerMockRecorder) RunAll() *gomock.Call

RunAll indicates an expected call of RunAll.

type Scheduler

type Scheduler interface {
	DoEvery(interval time.Duration, singletonMode bool, jobFun interface{}) (Job, error)
	RunAll()
}

func NewScheduler

func NewScheduler(logger logging.Logger) Scheduler

type SchedulerImpl

type SchedulerImpl struct {
	// contains filtered or unexported fields
}

func (*SchedulerImpl) DoEvery

func (s *SchedulerImpl) DoEvery(interval time.Duration, singletonMode bool, jobFun interface{}) (Job, error)

func (*SchedulerImpl) RunAll

func (s *SchedulerImpl) RunAll()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL