SYMBOL INDEX (479 symbols across 20 files) FILE: distributed.go type Elector (line 10) | type Elector interface type Locker (line 36) | type Locker interface type Lock (line 43) | type Lock interface FILE: example_test.go function ExampleAfterJobRuns (line 15) | func ExampleAfterJobRuns() { function ExampleAfterJobRunsWithError (line 36) | func ExampleAfterJobRunsWithError() { type errorLocker (line 59) | type errorLocker struct method Lock (line 61) | func (e errorLocker) Lock(_ context.Context, _ string) (gocron.Lock, e... function ExampleAfterLockError (line 65) | func ExampleAfterLockError() { function ExampleBeforeJobRuns (line 87) | func ExampleBeforeJobRuns() { function ExampleBeforeJobRunsSkipIfBeforeFuncErrors (line 108) | func ExampleBeforeJobRunsSkipIfBeforeFuncErrors() { function ExampleCronJob (line 131) | func ExampleCronJob() { function ExampleDailyJob (line 157) | func ExampleDailyJob() { function ExampleDurationJob (line 177) | func ExampleDurationJob() { function ExampleDurationRandomJob (line 191) | func ExampleDurationRandomJob() { function ExampleJob_id (line 206) | func ExampleJob_id() { function ExampleJob_lastRun (line 222) | func ExampleJob_lastRun() { function ExampleJob_name (line 238) | func ExampleJob_name() { function ExampleJob_nextRun (line 257) | func ExampleJob_nextRun() { function ExampleJob_nextRuns (line 277) | func ExampleJob_nextRuns() { function ExampleJob_runNow (line 297) | func ExampleJob_runNow() { function ExampleJob_tags (line 319) | func ExampleJob_tags() { function ExampleMonthlyJob (line 338) | func ExampleMonthlyJob() { function ExampleNewDefaultCron (line 357) | func ExampleNewDefaultCron() { function ExampleNewScheduler (line 365) | func ExampleNewScheduler() { function ExampleNewTask (line 372) | func ExampleNewTask() { function ExampleOneTimeJob (line 388) | func ExampleOneTimeJob() { function ExampleScheduler_jobs (line 425) | func ExampleScheduler_jobs() { function ExampleScheduler_newJob (line 442) | func ExampleScheduler_newJob() { function ExampleScheduler_removeByTags (line 460) | func ExampleScheduler_removeByTags() { function ExampleScheduler_removeJob (line 492) | func ExampleScheduler_removeJob() { function ExampleScheduler_shutdown (line 515) | func ExampleScheduler_shutdown() { function ExampleScheduler_start (line 520) | func ExampleScheduler_start() { function ExampleScheduler_stopJobs (line 537) | func ExampleScheduler_stopJobs() { function ExampleScheduler_update (line 556) | func ExampleScheduler_update() { function ExampleWeeklyJob (line 585) | func ExampleWeeklyJob() { function ExampleWithClock (line 604) | func ExampleWithClock() { function ExampleWithContext (line 632) | func ExampleWithContext() { type customCron (line 656) | type customCron struct method IsValid (line 658) | func (c customCron) IsValid(crontab string, location *time.Location, n... method Next (line 662) | func (c customCron) Next(lastRun time.Time) time.Time { function ExampleWithCronImplementation (line 666) | func ExampleWithCronImplementation() { function ExampleWithDisabledDistributedJobLocker (line 683) | func ExampleWithDisabledDistributedJobLocker() { type myElector (line 719) | type myElector struct method IsLeader (line 721) | func (m myElector) IsLeader(_ context.Context) error { function ExampleWithDistributedElector (line 725) | func ExampleWithDistributedElector() { type myLocker (line 743) | type myLocker struct method Lock (line 745) | func (m myLocker) Lock(ctx context.Context, key string) (gocron.Lock, ... type testLock (line 751) | type testLock struct method Unlock (line 753) | func (t testLock) Unlock(_ context.Context) error { function ExampleWithDistributedLocker (line 757) | func ExampleWithDistributedLocker() { function ExampleWithEventListeners (line 781) | func ExampleWithEventListeners() { function ExampleWithGlobalJobOptions (line 812) | func ExampleWithGlobalJobOptions() { function ExampleWithIdentifier (line 858) | func ExampleWithIdentifier() { function ExampleWithIntervalFromCompletion (line 879) | func ExampleWithIntervalFromCompletion() { function ExampleWithLimitConcurrentJobs (line 904) | func ExampleWithLimitConcurrentJobs() { function ExampleWithLimitedRuns (line 913) | func ExampleWithLimitedRuns() { function ExampleWithLocation (line 939) | func ExampleWithLocation() { function ExampleWithLogger (line 947) | func ExampleWithLogger() { function ExampleWithMonitor (line 955) | func ExampleWithMonitor() { function ExampleWithName (line 1018) | func ExampleWithName() { function ExampleWithSingletonMode (line 1039) | func ExampleWithSingletonMode() { function ExampleWithStartAt (line 1058) | func ExampleWithStartAt() { function ExampleWithStartDateTime (line 1088) | func ExampleWithStartDateTime() { function ExampleWithStartDateTimePast (line 1118) | func ExampleWithStartDateTimePast() { function ExampleWithStartImmediately (line 1147) | func ExampleWithStartImmediately() { function ExampleWithStopTimeout (line 1172) | func ExampleWithStopTimeout() { function ExampleWithTags (line 1178) | func ExampleWithTags() { FILE: examples/elector/main.go type myElector (line 14) | type myElector struct method IsLeader (line 19) | func (m myElector) IsLeader(_ context.Context) error { function main (line 28) | func main() { FILE: executor.go type executor (line 15) | type executor struct method start (line 87) | func (e *executor) start() { method sendOutForRescheduling (line 262) | func (e *executor) sendOutForRescheduling(jIn *jobIn) { method sendOutForNextRunUpdate (line 276) | func (e *executor) sendOutForNextRunUpdate(jIn *jobIn) { method limitModeRunner (line 284) | func (e *executor) limitModeRunner(name string, in chan jobIn, wg *wai... method singletonModeRunner (line 349) | func (e *executor) singletonModeRunner(name string, in chan jobIn, wg ... method runJob (line 388) | func (e *executor) runJob(j internalJob, jIn jobIn) { method callJobWithRecover (line 515) | func (e *executor) callJobWithRecover(j internalJob) (err error) { method recordJobTiming (line 528) | func (e *executor) recordJobTiming(start time.Time, end time.Time, j i... method recordJobTimingWithStatus (line 534) | func (e *executor) recordJobTimingWithStatus(start time.Time, end time... method incrementJobCounter (line 540) | func (e *executor) incrementJobCounter(j internalJob, status JobStatus) { method stop (line 546) | func (e *executor) stop(standardJobsWg, singletonJobsWg, limitModeJobs... type jobIn (line 63) | type jobIn struct type singletonRunner (line 68) | type singletonRunner struct type limitModeConfig (line 73) | type limitModeConfig struct FILE: gocron-monitor-test/debug_restart.go type DebugMonitor (line 10) | type DebugMonitor struct method SchedulerStarted (line 21) | func (m *DebugMonitor) SchedulerStarted() { method SchedulerShutdown (line 26) | func (m *DebugMonitor) SchedulerShutdown() { method JobRegistered (line 31) | func (m *DebugMonitor) JobRegistered(job *gocron.Job) { method JobUnregistered (line 36) | func (m *DebugMonitor) JobUnregistered(job *gocron.Job) { method JobStarted (line 41) | func (m *DebugMonitor) JobStarted(job *gocron.Job) { method JobRunning (line 46) | func (m *DebugMonitor) JobRunning(job *gocron.Job) { method JobCompleted (line 51) | func (m *DebugMonitor) JobCompleted(job *gocron.Job) { method JobFailed (line 56) | func (m *DebugMonitor) JobFailed(job *gocron.Job, err error) { function main (line 61) | func main() { FILE: job.go type internalJob (line 20) | type internalJob struct method stop (line 62) | func (j *internalJob) stop() { method stopTimeReached (line 69) | func (j *internalJob) stopTimeReached(now time.Time) bool { type task (line 78) | type task struct type Task (line 85) | type Task function NewTask (line 92) | func NewTask(function any, parameters ...any) Task { type limitRunsTo (line 104) | type limitRunsTo struct type Cron (line 118) | type Cron interface type JobDefinition (line 131) | type JobDefinition interface function newDefaultCronImplementation (line 137) | func newDefaultCronImplementation(withSeconds bool) Cron { function NewDefaultCron (line 146) | func NewDefaultCron(cronStatementsIncludeSeconds bool) Cron { type defaultCron (line 154) | type defaultCron struct method IsValid (line 159) | func (c *defaultCron) IsValid(crontab string, location *time.Location,... method Next (line 190) | func (c *defaultCron) Next(lastRun time.Time) time.Time { type cronJobDefinition (line 197) | type cronJobDefinition struct method setup (line 202) | func (c cronJobDefinition) setup(j *internalJob, location *time.Locati... function CronJob (line 221) | func CronJob(crontab string, withSeconds bool) JobDefinition { type durationJobDefinition (line 230) | type durationJobDefinition struct method setup (line 234) | func (d durationJobDefinition) setup(j *internalJob, _ *time.Location,... function DurationJob (line 247) | func DurationJob(duration time.Duration) JobDefinition { type durationRandomJobDefinition (line 255) | type durationRandomJobDefinition struct method setup (line 259) | func (d durationRandomJobDefinition) setup(j *internalJob, _ *time.Loc... function DurationRandomJob (line 286) | func DurationRandomJob(minDuration, maxDuration time.Duration) JobDefini... function DailyJob (line 299) | func DailyJob(interval uint, atTimes AtTimes) JobDefinition { type dailyJobDefinition (line 308) | type dailyJobDefinition struct method setup (line 313) | func (d dailyJobDefinition) setup(j *internalJob, location *time.Locat... type weeklyJobDefinition (line 340) | type weeklyJobDefinition struct method setup (line 346) | func (w weeklyJobDefinition) setup(j *internalJob, location *time.Loca... type Weekdays (line 380) | type Weekdays function NewWeekdays (line 383) | func NewWeekdays(weekday time.Weekday, weekdays ...time.Weekday) Weekdays { function WeeklyJob (line 397) | func WeeklyJob(interval uint, daysOfTheWeek Weekdays, atTimes AtTimes) J... type monthlyJobDefinition (line 407) | type monthlyJobDefinition struct method setup (line 413) | func (m monthlyJobDefinition) setup(j *internalJob, location *time.Loc... type days (line 458) | type days type DaysOfTheMonth (line 461) | type DaysOfTheMonth function NewDaysOfTheMonth (line 469) | func NewDaysOfTheMonth(day int, moreDays ...int) DaysOfTheMonth { type atTime (line 475) | type atTime struct method time (line 479) | func (a atTime) time(location *time.Location) time.Time { function TimeFromAtTime (line 487) | func TimeFromAtTime(at AtTime, loc *time.Location) time.Time { type AtTime (line 492) | type AtTime function NewAtTime (line 496) | func NewAtTime(hours, minutes, seconds uint) AtTime { type AtTimes (line 503) | type AtTimes function NewAtTimes (line 507) | func NewAtTimes(atTime AtTime, atTimes ...AtTime) AtTimes { function MonthlyJob (line 529) | func MonthlyJob(interval uint, daysOfTheMonth DaysOfTheMonth, atTimes At... type oneTimeJobDefinition (line 539) | type oneTimeJobDefinition struct method setup (line 543) | func (o oneTimeJobDefinition) setup(j *internalJob, _ *time.Location, ... function removeSliceDuplicatesTimeOnSortedSlice (line 561) | func removeSliceDuplicatesTimeOnSortedSlice(times []time.Time) []time.Ti... type OneTimeJobStartAtOption (line 572) | type OneTimeJobStartAtOption function OneTimeJobStartImmediately (line 575) | func OneTimeJobStartImmediately() OneTimeJobStartAtOption { function OneTimeJobStartDateTime (line 584) | func OneTimeJobStartDateTime(start time.Time) OneTimeJobStartAtOption { function OneTimeJobStartDateTimes (line 592) | func OneTimeJobStartDateTimes(times ...time.Time) OneTimeJobStartAtOption { function OneTimeJob (line 600) | func OneTimeJob(startAt OneTimeJobStartAtOption) JobDefinition { type JobOption (line 613) | type JobOption function WithDistributedJobLocker (line 618) | func WithDistributedJobLocker(locker Locker) JobOption { function WithDisabledDistributedJobLocker (line 631) | func WithDisabledDistributedJobLocker(disabled bool) JobOption { function WithEventListeners (line 640) | func WithEventListeners(eventListeners ...EventListener) JobOption { function WithLimitedRuns (line 653) | func WithLimitedRuns(limit uint) JobOption { function WithName (line 668) | func WithName(name string) JobOption { function WithCronImplementation (line 680) | func WithCronImplementation(c Cron) JobOption { function WithSingletonMode (line 690) | func WithSingletonMode(mode LimitMode) JobOption { function WithIntervalFromCompletion (line 730) | func WithIntervalFromCompletion() JobOption { function WithStartAt (line 739) | func WithStartAt(option StartAtOption) JobOption { type StartAtOption (line 746) | type StartAtOption function WithStartImmediately (line 751) | func WithStartImmediately() StartAtOption { function WithStartDateTime (line 760) | func WithStartDateTime(start time.Time) StartAtOption { function WithStartDateTimePast (line 780) | func WithStartDateTimePast(start time.Time) StartAtOption { function WithStopAt (line 795) | func WithStopAt(option StopAtOption) JobOption { type StopAtOption (line 802) | type StopAtOption function WithStopDateTime (line 807) | func WithStopDateTime(end time.Time) StopAtOption { function WithTags (line 823) | func WithTags(tags ...string) JobOption { function WithIdentifier (line 833) | func WithIdentifier(id uuid.UUID) JobOption { function WithContext (line 850) | func WithContext(ctx context.Context) JobOption { type EventListener (line 868) | type EventListener function BeforeJobRuns (line 872) | func BeforeJobRuns(eventListenerFunc func(jobID uuid.UUID, jobName strin... function BeforeJobRunsSkipIfBeforeFuncErrors (line 885) | func BeforeJobRunsSkipIfBeforeFuncErrors(eventListenerFunc func(jobID uu... function AfterJobRuns (line 897) | func AfterJobRuns(eventListenerFunc func(jobID uuid.UUID, jobName string... function AfterJobRunsWithError (line 909) | func AfterJobRunsWithError(eventListenerFunc func(jobID uuid.UUID, jobNa... function AfterJobRunsWithPanic (line 921) | func AfterJobRunsWithPanic(eventListenerFunc func(jobID uuid.UUID, jobNa... function AfterLockError (line 933) | func AfterLockError(eventListenerFunc func(jobID uuid.UUID, jobName stri... type jobSchedule (line 949) | type jobSchedule interface type cronJob (line 955) | type cronJob struct method next (line 960) | func (j *cronJob) next(lastRun time.Time) time.Time { type durationJob (line 966) | type durationJob struct method next (line 970) | func (j *durationJob) next(lastRun time.Time) time.Time { type durationRandomJob (line 976) | type durationRandomJob struct method next (line 981) | func (j *durationRandomJob) next(lastRun time.Time) time.Time { type dailyJob (line 988) | type dailyJob struct method next (line 993) | func (d dailyJob) next(lastRun time.Time) time.Time { method nextDay (line 1005) | func (d dailyJob) nextDay(lastRun time.Time, firstPass bool) time.Time { type weeklyJob (line 1027) | type weeklyJob struct method next (line 1033) | func (w weeklyJob) next(lastRun time.Time) time.Time { method nextWeekDayAtTime (line 1044) | func (w weeklyJob) nextWeekDayAtTime(lastRun time.Time, firstPass bool... type monthlyJob (line 1073) | type monthlyJob struct method next (line 1080) | func (m monthlyJob) next(lastRun time.Time) time.Time { method handleNegativeDays (line 1100) | func (m monthlyJob) handleNegativeDays(from time.Time, days, negativeD... method nextMonthDayAtTime (line 1114) | func (m monthlyJob) nextMonthDayAtTime(lastRun time.Time, days []int, ... type oneTimeJob (line 1148) | type oneTimeJob struct method next (line 1163) | func (o oneTimeJob) next(lastRun time.Time) time.Time { type Job (line 1185) | type Job interface type job (line 1216) | type job struct method ID (line 1224) | func (j job) ID() uuid.UUID { method LastRun (line 1228) | func (j job) LastRun() (time.Time, error) { method Name (line 1236) | func (j job) Name() string { method NextRun (line 1240) | func (j job) NextRun() (time.Time, error) { method NextRuns (line 1253) | func (j job) NextRuns(count int) ([]time.Time, error) { method Tags (line 1280) | func (j job) Tags() []string { method RunNow (line 1284) | func (j job) RunNow() error { FILE: job_test.go function TestDurationJob_next (line 16) | func TestDurationJob_next(t *testing.T) { function TestDailyJob_next (line 46) | func TestDailyJob_next(t *testing.T) { function TestWeeklyJob_next (line 116) | func TestWeeklyJob_next(t *testing.T) { function TestMonthlyJob_next (line 179) | func TestMonthlyJob_next(t *testing.T) { function TestDurationRandomJob_next (line 343) | func TestDurationRandomJob_next(t *testing.T) { function TestOneTimeJob_next (line 387) | func TestOneTimeJob_next(t *testing.T) { function TestJob_RunNow_Error (line 392) | func TestJob_RunNow_Error(t *testing.T) { function TestJob_LastRun (line 406) | func TestJob_LastRun(t *testing.T) { function TestWithEventListeners (line 437) | func TestWithEventListeners(t *testing.T) { function TestJob_NextRun (line 553) | func TestJob_NextRun(t *testing.T) { function TestJob_NextRuns (line 608) | func TestJob_NextRuns(t *testing.T) { function TestJob_PanicOccurred (line 681) | func TestJob_PanicOccurred(t *testing.T) { function TestTimeFromAtTime (line 714) | func TestTimeFromAtTime(t *testing.T) { function TestNewAtTimes (line 762) | func TestNewAtTimes(t *testing.T) { function TestNewWeekdays (line 783) | func TestNewWeekdays(t *testing.T) { function TestNewDaysOfTheMonth (line 802) | func TestNewDaysOfTheMonth(t *testing.T) { function TestWithIntervalFromCompletion_BasicFunctionality (line 818) | func TestWithIntervalFromCompletion_BasicFunctionality(t *testing.T) { function TestWithIntervalFromCompletion_VariableExecutionTime (line 884) | func TestWithIntervalFromCompletion_VariableExecutionTime(t *testing.T) { function TestWithIntervalFromCompletion_LongRunningJob (line 953) | func TestWithIntervalFromCompletion_LongRunningJob(t *testing.T) { function TestWithIntervalFromCompletion_ComparedToDefault (line 1013) | func TestWithIntervalFromCompletion_ComparedToDefault(t *testing.T) { function TestWithIntervalFromCompletion_DurationRandomJob (line 1108) | func TestWithIntervalFromCompletion_DurationRandomJob(t *testing.T) { function TestWithIntervalFromCompletion_FirstRun (line 1162) | func TestWithIntervalFromCompletion_FirstRun(t *testing.T) { function TestJob_NextRun_MultipleJobsSimultaneously (line 1199) | func TestJob_NextRun_MultipleJobsSimultaneously(t *testing.T) { function TestJob_NextRun_ConcurrentCompletions (line 1299) | func TestJob_NextRun_ConcurrentCompletions(t *testing.T) { FILE: logger.go type Logger (line 17) | type Logger interface type noOpLogger (line 26) | type noOpLogger struct method Debug (line 28) | func (l noOpLogger) Debug(_ string, _ ...any) {} method Error (line 29) | func (l noOpLogger) Error(_ string, _ ...any) {} method Info (line 30) | func (l noOpLogger) Info(_ string, _ ...any) {} method Warn (line 31) | func (l noOpLogger) Warn(_ string, _ ...any) {} type LogLevel (line 37) | type LogLevel constant LogLevelError (line 41) | LogLevelError LogLevel = iota constant LogLevelWarn (line 42) | LogLevelWarn constant LogLevelInfo (line 43) | LogLevelInfo constant LogLevelDebug (line 44) | LogLevelDebug type logger (line 47) | type logger struct method Debug (line 61) | func (l *logger) Debug(msg string, args ...any) { method Error (line 68) | func (l *logger) Error(msg string, args ...any) { method Info (line 75) | func (l *logger) Info(msg string, args ...any) { method Warn (line 82) | func (l *logger) Warn(msg string, args ...any) { function NewLogger (line 53) | func NewLogger(level LogLevel) Logger { function logFormatArgs (line 89) | func logFormatArgs(args ...any) string { FILE: logger_test.go function TestNoOpLogger (line 12) | func TestNoOpLogger(_ *testing.T) { function TestNewLogger (line 20) | func TestNewLogger(t *testing.T) { FILE: mocks/distributed.go type MockElector (line 21) | type MockElector struct method EXPECT (line 40) | func (m *MockElector) EXPECT() *MockElectorMockRecorder { method IsLeader (line 45) | func (m *MockElector) IsLeader(arg0 context.Context) error { type MockElectorMockRecorder (line 28) | type MockElectorMockRecorder struct method IsLeader (line 53) | func (mr *MockElectorMockRecorder) IsLeader(arg0 any) *gomock.Call { function NewMockElector (line 33) | func NewMockElector(ctrl *gomock.Controller) *MockElector { type MockLocker (line 59) | type MockLocker struct method EXPECT (line 78) | func (m *MockLocker) EXPECT() *MockLockerMockRecorder { method Lock (line 83) | func (m *MockLocker) Lock(ctx context.Context, key string) (v2.Lock, e... type MockLockerMockRecorder (line 66) | type MockLockerMockRecorder struct method Lock (line 92) | func (mr *MockLockerMockRecorder) Lock(ctx, key any) *gomock.Call { function NewMockLocker (line 71) | func NewMockLocker(ctrl *gomock.Controller) *MockLocker { type MockLock (line 98) | type MockLock struct method EXPECT (line 117) | func (m *MockLock) EXPECT() *MockLockMockRecorder { method Unlock (line 122) | func (m *MockLock) Unlock(ctx context.Context) error { type MockLockMockRecorder (line 105) | type MockLockMockRecorder struct method Unlock (line 130) | func (mr *MockLockMockRecorder) Unlock(ctx any) *gomock.Call { function NewMockLock (line 110) | func NewMockLock(ctrl *gomock.Controller) *MockLock { FILE: mocks/job.go type MockJob (line 21) | type MockJob struct method EXPECT (line 40) | func (m *MockJob) EXPECT() *MockJobMockRecorder { method ID (line 45) | func (m *MockJob) ID() uuid.UUID { method LastRun (line 59) | func (m *MockJob) LastRun() (time.Time, error) { method Name (line 74) | func (m *MockJob) Name() string { method NextRun (line 88) | func (m *MockJob) NextRun() (time.Time, error) { method NextRuns (line 103) | func (m *MockJob) NextRuns(arg0 int) ([]time.Time, error) { method RunNow (line 118) | func (m *MockJob) RunNow() error { method Tags (line 132) | func (m *MockJob) Tags() []string { type MockJobMockRecorder (line 28) | type MockJobMockRecorder struct method ID (line 53) | func (mr *MockJobMockRecorder) ID() *gomock.Call { method LastRun (line 68) | func (mr *MockJobMockRecorder) LastRun() *gomock.Call { method Name (line 82) | func (mr *MockJobMockRecorder) Name() *gomock.Call { method NextRun (line 97) | func (mr *MockJobMockRecorder) NextRun() *gomock.Call { method NextRuns (line 112) | func (mr *MockJobMockRecorder) NextRuns(arg0 any) *gomock.Call { method RunNow (line 126) | func (mr *MockJobMockRecorder) RunNow() *gomock.Call { method Tags (line 140) | func (mr *MockJobMockRecorder) Tags() *gomock.Call { function NewMockJob (line 33) | func NewMockJob(ctrl *gomock.Controller) *MockJob { FILE: mocks/logger.go type MockLogger (line 19) | type MockLogger struct method EXPECT (line 38) | func (m *MockLogger) EXPECT() *MockLoggerMockRecorder { method Debug (line 43) | func (m *MockLogger) Debug(msg string, args ...any) { method Error (line 60) | func (m *MockLogger) Error(msg string, args ...any) { method Info (line 77) | func (m *MockLogger) Info(msg string, args ...any) { method Warn (line 94) | func (m *MockLogger) Warn(msg string, args ...any) { type MockLoggerMockRecorder (line 26) | type MockLoggerMockRecorder struct method Debug (line 53) | func (mr *MockLoggerMockRecorder) Debug(msg any, args ...any) *gomock.... method Error (line 70) | func (mr *MockLoggerMockRecorder) Error(msg any, args ...any) *gomock.... method Info (line 87) | func (mr *MockLoggerMockRecorder) Info(msg any, args ...any) *gomock.C... method Warn (line 104) | func (mr *MockLoggerMockRecorder) Warn(msg any, args ...any) *gomock.C... function NewMockLogger (line 31) | func NewMockLogger(ctrl *gomock.Controller) *MockLogger { FILE: mocks/scheduler.go type MockScheduler (line 21) | type MockScheduler struct method EXPECT (line 40) | func (m *MockScheduler) EXPECT() *MockSchedulerMockRecorder { method Jobs (line 45) | func (m *MockScheduler) Jobs() []v2.Job { method JobsWaitingInQueue (line 59) | func (m *MockScheduler) JobsWaitingInQueue() int { method NewJob (line 73) | func (m *MockScheduler) NewJob(arg0 v2.JobDefinition, arg1 v2.Task, ar... method RemoveByTags (line 93) | func (m *MockScheduler) RemoveByTags(arg0 ...string) { method RemoveJob (line 109) | func (m *MockScheduler) RemoveJob(arg0 uuid.UUID) error { method Shutdown (line 123) | func (m *MockScheduler) Shutdown() error { method Start (line 137) | func (m *MockScheduler) Start() { method StopJobs (line 149) | func (m *MockScheduler) StopJobs() error { method Update (line 163) | func (m *MockScheduler) Update(arg0 uuid.UUID, arg1 v2.JobDefinition, ... type MockSchedulerMockRecorder (line 28) | type MockSchedulerMockRecorder struct method Jobs (line 53) | func (mr *MockSchedulerMockRecorder) Jobs() *gomock.Call { method JobsWaitingInQueue (line 67) | func (mr *MockSchedulerMockRecorder) JobsWaitingInQueue() *gomock.Call { method NewJob (line 86) | func (mr *MockSchedulerMockRecorder) NewJob(arg0, arg1 any, arg2 ...an... method RemoveByTags (line 103) | func (mr *MockSchedulerMockRecorder) RemoveByTags(arg0 ...any) *gomock... method RemoveJob (line 117) | func (mr *MockSchedulerMockRecorder) RemoveJob(arg0 any) *gomock.Call { method Shutdown (line 131) | func (mr *MockSchedulerMockRecorder) Shutdown() *gomock.Call { method Start (line 143) | func (mr *MockSchedulerMockRecorder) Start() *gomock.Call { method StopJobs (line 157) | func (mr *MockSchedulerMockRecorder) StopJobs() *gomock.Call { method Update (line 176) | func (mr *MockSchedulerMockRecorder) Update(arg0, arg1, arg2 any, arg3... function NewMockScheduler (line 33) | func NewMockScheduler(ctrl *gomock.Controller) *MockScheduler { FILE: monitor.go type JobStatus (line 10) | type JobStatus constant Fail (line 14) | Fail JobStatus = "fail" constant Success (line 15) | Success JobStatus = "success" constant Skip (line 16) | Skip JobStatus = "skip" constant SingletonRescheduled (line 17) | SingletonRescheduled JobStatus = "singleton_rescheduled" type Monitor (line 21) | type Monitor interface type MonitorStatus (line 31) | type MonitorStatus interface FILE: scheduler.go type Scheduler (line 20) | type Scheduler interface type scheduler (line 64) | type scheduler struct method stopScheduler (line 239) | func (s *scheduler) stopScheduler() { method selectAllJobsOutRequest (line 285) | func (s *scheduler) selectAllJobsOutRequest(out allJobsOutRequest) { method selectRunJobRequest (line 302) | func (s *scheduler) selectRunJobRequest(run runJobRequest) { method selectRemoveJob (line 328) | func (s *scheduler) selectRemoveJob(id uuid.UUID) { method selectExecJobsOutForRescheduling (line 343) | func (s *scheduler) selectExecJobsOutForRescheduling(id uuid.UUID) { method updateNextScheduled (line 440) | func (s *scheduler) updateNextScheduled(id uuid.UUID) { method selectExecJobsOutCompleted (line 456) | func (s *scheduler) selectExecJobsOutCompleted(id uuid.UUID) { method selectJobOutRequest (line 494) | func (s *scheduler) selectJobOutRequest(out *jobOutRequest) { method selectNewJob (line 504) | func (s *scheduler) selectNewJob(in newJobIn) { method selectRemoveJobsByTags (line 547) | func (s *scheduler) selectRemoveJobsByTags(tags []string) { method selectStart (line 563) | func (s *scheduler) selectStart() { method now (line 617) | func (s *scheduler) now() time.Time { method jobFromInternalJob (line 621) | func (s *scheduler) jobFromInternalJob(in internalJob) job { method Jobs (line 631) | func (s *scheduler) Jobs() []Job { method NewJob (line 647) | func (s *scheduler) NewJob(jobDefinition JobDefinition, task Task, opt... method verifyInterfaceVariadic (line 651) | func (s *scheduler) verifyInterfaceVariadic(taskFunc reflect.Value, ts... method verifyVariadic (line 661) | func (s *scheduler) verifyVariadic(taskFunc reflect.Value, tsk task, v... method verifyNonVariadic (line 687) | func (s *scheduler) verifyNonVariadic(taskFunc reflect.Value, tsk task... method verifyParameterType (line 706) | func (s *scheduler) verifyParameterType(taskFunc reflect.Value, tsk ta... method addOrUpdateJob (line 722) | func (s *scheduler) addOrUpdateJob(id uuid.UUID, definition JobDefinit... method RemoveByTags (line 824) | func (s *scheduler) RemoveByTags(tags ...string) { method RemoveJob (line 831) | func (s *scheduler) RemoveJob(id uuid.UUID) error { method Start (line 844) | func (s *scheduler) Start() { method StopJobs (line 862) | func (s *scheduler) StopJobs() error { method Shutdown (line 879) | func (s *scheduler) Shutdown() error { method Update (line 900) | func (s *scheduler) Update(id uuid.UUID, jobDefinition JobDefinition, ... method JobsWaitingInQueue (line 904) | func (s *scheduler) JobsWaitingInQueue() int { method notifySchedulerStarted (line 1112) | func (s *scheduler) notifySchedulerStarted() { method notifySchedulerShutdown (line 1119) | func (s *scheduler) notifySchedulerShutdown() { method notifyJobRegistered (line 1126) | func (s *scheduler) notifyJobRegistered(job Job) { method notifyJobUnregistered (line 1133) | func (s *scheduler) notifyJobUnregistered(job Job) { method notifyJobStarted (line 1140) | func (s *scheduler) notifyJobStarted(job Job) { method notifyJobRunning (line 1147) | func (s *scheduler) notifyJobRunning(job Job) { method notifyJobCompleted (line 1154) | func (s *scheduler) notifyJobCompleted(job Job) { method notifyJobFailed (line 1161) | func (s *scheduler) notifyJobFailed(job Job, err error) { method notifySchedulerStopped (line 1168) | func (s *scheduler) notifySchedulerStopped() { method notifyJobExecutionTime (line 1175) | func (s *scheduler) notifyJobExecutionTime(job Job, duration time.Dura... method notifyJobSchedulingDelay (line 1182) | func (s *scheduler) notifyJobSchedulingDelay(job Job, scheduledTime ti... method notifyConcurrencyLimitReached (line 1189) | func (s *scheduler) notifyConcurrencyLimitReached(limitType string, jo... type newJobIn (line 108) | type newJobIn struct type jobOutRequest (line 114) | type jobOutRequest struct type runJobRequest (line 119) | type runJobRequest struct type allJobsOutRequest (line 124) | type allJobsOutRequest struct function NewScheduler (line 133) | func NewScheduler(options ...SchedulerOption) (Scheduler, error) { type SchedulerOption (line 919) | type SchedulerOption function WithClock (line 923) | func WithClock(clock clockwork.Clock) SchedulerOption { function WithDistributedElector (line 937) | func WithDistributedElector(elector Elector) SchedulerOption { function WithDistributedLocker (line 952) | func WithDistributedLocker(locker Locker) SchedulerOption { function WithGlobalJobOptions (line 965) | func WithGlobalJobOptions(jobOptions ...JobOption) SchedulerOption { type LimitMode (line 974) | type LimitMode constant LimitModeReschedule (line 981) | LimitModeReschedule = 1 constant LimitModeWait (line 1007) | LimitModeWait = 2 function WithLimitConcurrentJobs (line 1021) | func WithLimitConcurrentJobs(limit uint, mode LimitMode) SchedulerOption { function WithLocation (line 1042) | func WithLocation(location *time.Location) SchedulerOption { function WithLogger (line 1053) | func WithLogger(logger Logger) SchedulerOption { function WithStopTimeout (line 1068) | func WithStopTimeout(timeout time.Duration) SchedulerOption { function WithMonitor (line 1079) | func WithMonitor(monitor Monitor) SchedulerOption { function WithMonitorStatus (line 1090) | func WithMonitorStatus(monitor MonitorStatus) SchedulerOption { function WithSchedulerMonitor (line 1101) | func WithSchedulerMonitor(monitor SchedulerMonitor) SchedulerOption { FILE: scheduler_monitor.go type SchedulerMonitor (line 7) | type SchedulerMonitor interface FILE: scheduler_monitor_test.go type testSchedulerMonitor (line 16) | type testSchedulerMonitor struct method SchedulerStarted (line 68) | func (t *testSchedulerMonitor) SchedulerStarted() { method SchedulerStopped (line 75) | func (t *testSchedulerMonitor) SchedulerStopped() { method SchedulerShutdown (line 82) | func (t *testSchedulerMonitor) SchedulerShutdown() { method getStartedCount (line 89) | func (t *testSchedulerMonitor) getStartedCount() int64 { method getShutdownCount (line 93) | func (t *testSchedulerMonitor) getShutdownCount() int64 { method getStartedCalls (line 97) | func (t *testSchedulerMonitor) getStartedCalls() []time.Time { method getShutdownCalls (line 103) | func (t *testSchedulerMonitor) getShutdownCalls() []time.Time { method JobRegistered (line 109) | func (t *testSchedulerMonitor) JobRegistered(job Job) { method JobUnregistered (line 116) | func (t *testSchedulerMonitor) JobUnregistered(job Job) { method JobStarted (line 123) | func (t *testSchedulerMonitor) JobStarted(job Job) { method JobRunning (line 130) | func (t *testSchedulerMonitor) JobRunning(job Job) { method JobCompleted (line 137) | func (t *testSchedulerMonitor) JobCompleted(job Job) { method JobFailed (line 144) | func (t *testSchedulerMonitor) JobFailed(job Job, err error) { method JobExecutionTime (line 152) | func (t *testSchedulerMonitor) JobExecutionTime(_ Job, duration time.D... method JobSchedulingDelay (line 158) | func (t *testSchedulerMonitor) JobSchedulingDelay(_ Job, scheduledTime... method ConcurrencyLimitReached (line 167) | func (t *testSchedulerMonitor) ConcurrencyLimitReached(limitType strin... method getJobRegCount (line 174) | func (t *testSchedulerMonitor) getJobRegCount() int64 { method getJobUnregCount (line 178) | func (t *testSchedulerMonitor) getJobUnregCount() int64 { method getJobStartCount (line 182) | func (t *testSchedulerMonitor) getJobStartCount() int64 { method getJobRunningCount (line 186) | func (t *testSchedulerMonitor) getJobRunningCount() int64 { method getJobCompletedCount (line 190) | func (t *testSchedulerMonitor) getJobCompletedCount() int64 { method getJobFailedCount (line 194) | func (t *testSchedulerMonitor) getJobFailedCount() int64 { method getJobFailedCalls (line 228) | func (t *testSchedulerMonitor) getJobFailedCalls() ([]Job, []error) { function newTestSchedulerMonitor (line 45) | func newTestSchedulerMonitor() *testSchedulerMonitor { function TestSchedulerMonitor_Basic (line 236) | func TestSchedulerMonitor_Basic(t *testing.T) { function TestSchedulerMonitor_MultipleStartStop (line 280) | func TestSchedulerMonitor_MultipleStartStop(t *testing.T) { function TestSchedulerMonitor_WithoutMonitor (line 313) | func TestSchedulerMonitor_WithoutMonitor(t *testing.T) { function TestSchedulerMonitor_NilMonitor (line 332) | func TestSchedulerMonitor_NilMonitor(t *testing.T) { function TestSchedulerMonitor_ConcurrentAccess (line 339) | func TestSchedulerMonitor_ConcurrentAccess(t *testing.T) { function TestSchedulerMonitor_StartWithoutJobs (line 368) | func TestSchedulerMonitor_StartWithoutJobs(t *testing.T) { function TestSchedulerMonitor_ShutdownWithoutStart (line 386) | func TestSchedulerMonitor_ShutdownWithoutStart(t *testing.T) { function TestSchedulerMonitor_ThreadSafety (line 408) | func TestSchedulerMonitor_ThreadSafety(t *testing.T) { function TestSchedulerMonitor_IntegrationWithJobs (line 438) | func TestSchedulerMonitor_IntegrationWithJobs(t *testing.T) { FILE: scheduler_test.go constant testEnvLocal (line 23) | testEnvLocal = "local" function init (line 27) | func init() { function newTestScheduler (line 41) | func newTestScheduler(t *testing.T, options ...SchedulerOption) Scheduler { type errorLocker (line 57) | type errorLocker struct method Lock (line 59) | func (e errorLocker) Lock(_ context.Context, _ string) (Lock, error) { function TestScheduler_OneSecond_NoOptions (line 63) | func TestScheduler_OneSecond_NoOptions(t *testing.T) { function TestScheduler_LongRunningJobs (line 132) | func TestScheduler_LongRunningJobs(t *testing.T) { function TestScheduler_Update (line 233) | func TestScheduler_Update(t *testing.T) { function TestScheduler_StopTimeout (line 308) | func TestScheduler_StopTimeout(t *testing.T) { function TestScheduler_StopLongRunningJobs (line 363) | func TestScheduler_StopLongRunningJobs(t *testing.T) { function TestScheduler_StopAndStartLongRunningJobs (line 476) | func TestScheduler_StopAndStartLongRunningJobs(t *testing.T) { function TestScheduler_Shutdown (line 515) | func TestScheduler_Shutdown(t *testing.T) { function TestScheduler_Start (line 581) | func TestScheduler_Start(t *testing.T) { function TestScheduler_NewJob (line 616) | func TestScheduler_NewJob(t *testing.T) { function TestScheduler_NewJobErrors (line 713) | func TestScheduler_NewJobErrors(t *testing.T) { function TestScheduler_NewJobTask (line 1127) | func TestScheduler_NewJobTask(t *testing.T) { function TestScheduler_WithOptionsErrors (line 1267) | func TestScheduler_WithOptionsErrors(t *testing.T) { function TestScheduler_Singleton (line 1329) | func TestScheduler_Singleton(t *testing.T) { function TestScheduler_LimitMode (line 1392) | func TestScheduler_LimitMode(t *testing.T) { function TestScheduler_LimitModeAndSingleton (line 1464) | func TestScheduler_LimitModeAndSingleton(t *testing.T) { function TestScheduler_OneTimeJob_DoesNotCleanupNext (line 1550) | func TestScheduler_OneTimeJob_DoesNotCleanupNext(t *testing.T) { type testElector (line 1638) | type testElector struct method IsLeader (line 1644) | func (t *testElector) IsLeader(ctx context.Context) error { type testLocker (line 1663) | type testLocker struct method Lock (line 1669) | func (t *testLocker) Lock(_ context.Context, _ string) (Lock, error) { type testLock (line 1682) | type testLock struct method Unlock (line 1684) | func (t testLock) Unlock(_ context.Context) error { function TestScheduler_WithDistributed (line 1688) | func TestScheduler_WithDistributed(t *testing.T) { function TestScheduler_RemoveJob (line 1877) | func TestScheduler_RemoveJob(t *testing.T) { function TestScheduler_JobsWaitingInQueue (line 1916) | func TestScheduler_JobsWaitingInQueue(t *testing.T) { function TestScheduler_RemoveLotsOfJobs (line 1969) | func TestScheduler_RemoveLotsOfJobs(t *testing.T) { function TestScheduler_RemoveJob_RemoveSelf (line 2011) | func TestScheduler_RemoveJob_RemoveSelf(t *testing.T) { function TestScheduler_WithEventListeners (line 2034) | func TestScheduler_WithEventListeners(t *testing.T) { function TestScheduler_WithLocker_WithEventListeners (line 2128) | func TestScheduler_WithLocker_WithEventListeners(t *testing.T) { function TestScheduler_ManyJobs (line 2188) | func TestScheduler_ManyJobs(t *testing.T) { function TestScheduler_RunJobNow (line 2223) | func TestScheduler_RunJobNow(t *testing.T) { function TestScheduler_LastRunSingleton (line 2373) | func TestScheduler_LastRunSingleton(t *testing.T) { function TestScheduler_OneTimeJob (line 2441) | func TestScheduler_OneTimeJob(t *testing.T) { function TestScheduler_AtTimesJob (line 2489) | func TestScheduler_AtTimesJob(t *testing.T) { function TestScheduler_WithLimitedRuns (line 2724) | func TestScheduler_WithLimitedRuns(t *testing.T) { function TestScheduler_Jobs (line 2799) | func TestScheduler_Jobs(t *testing.T) { type testMonitor (line 2831) | type testMonitor struct method IncrementJob (line 2844) | func (t *testMonitor) IncrementJob(_ uuid.UUID, name string, _ []strin... method RecordJobTiming (line 2854) | func (t *testMonitor) RecordJobTiming(startTime, endTime time.Time, _ ... function newTestMonitor (line 2837) | func newTestMonitor() *testMonitor { function TestScheduler_WithMonitor (line 2864) | func TestScheduler_WithMonitor(t *testing.T) { function TestScheduler_WithStartAtDateTimePast (line 2915) | func TestScheduler_WithStartAtDateTimePast(t *testing.T) { FILE: util.go function callJobFuncWithParams (line 13) | func callJobFuncWithParams(jobFunc any, params ...any) error { function requestJob (line 38) | func requestJob(id uuid.UUID, ch chan *jobOutRequest) *internalJob { function requestJobCtx (line 44) | func requestJobCtx(ctx context.Context, id uuid.UUID, ch chan *jobOutReq... function removeSliceDuplicatesInt (line 64) | func removeSliceDuplicatesInt(in []int) []int { function convertAtTimesToDateTime (line 69) | func convertAtTimesToDateTime(atTimes AtTimes, location *time.Location) ... function ascendingTime (line 90) | func ascendingTime(a, b time.Time) int { type waitGroupWithMutex (line 94) | type waitGroupWithMutex struct method Add (line 99) | func (w *waitGroupWithMutex) Add(delta int) { method Done (line 105) | func (w *waitGroupWithMutex) Done() { method Wait (line 109) | func (w *waitGroupWithMutex) Wait() { FILE: util_test.go function TestRemoveSliceDuplicatesInt (line 11) | func TestRemoveSliceDuplicatesInt(t *testing.T) { function TestCallJobFuncWithParams (line 38) | func TestCallJobFuncWithParams(t *testing.T) { function TestConvertAtTimesToDateTime (line 90) | func TestConvertAtTimesToDateTime(t *testing.T) {