schedulemanager

package
v1.16.6 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: Apache-2.0 Imports: 7 Imported by: 5 modules, 6 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewScheduleManager

func NewScheduleManager(ctx context.Context, logger *log.Logger) *scheduleManager

Types

type CronEntry

type CronEntry struct {
	EntryID cron.EntryID
	Ids     map[string]bool
}

type ScheduleEmitter added in v1.16.1

type ScheduleEmitter interface {
	Ch() chan string
}

ScheduleEmitter emits crontab schedule events. ManagerEventsHandler only needs this subset of ScheduleManager.

type ScheduleManager

type ScheduleManager interface {
	ScheduleRegistry
	ScheduleEmitter
	Stop()
	Start()
}

type ScheduleRegistry added in v1.16.1

type ScheduleRegistry interface {
	Add(entry smtypes.ScheduleEntry)
	Remove(entry smtypes.ScheduleEntry)
}

ScheduleRegistry manages cron schedule entries. ScheduleBindingsController only needs this subset of ScheduleManager.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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