package
2.7.11
Repository: https://github.com/influxdata/influxdb.git
Documentation: pkg.go.dev

# Functions

NewScheduler gives us a new TreeScheduler and SchedulerMetrics when given an Executor, a SchedulableService, and zero or more options.
ValidSchedule returns an error if the cron string is invalid.
WithMaxConcurrentWorkers is an option that sets the max number of concurrent workers that a TreeScheduler will use.
WithOnErrorFn is an option that sets the error function that gets called when there is an error in a TreeScheduler.
WithTime is an option for NewScheduler that allows you to inject a clock.Clock from ben johnson's github.com/benbjohnson/clock library, for testing purposes.

# Structs

Item is a task in the scheduler.
NoopScheduler is a no-op scheduler.
Schedule is an object a valid schedule of runs.
TreeScheduler is a Scheduler based on a btree.

# Interfaces

Executor is a system used by the scheduler to actually execute the scheduleable item.
Schedulable is the interface that encapsulates work that is to be executed on a specified schedule.
SchedulableService encapsulates the work necessary to schedule a job.
Scheduler is a example interface of a Scheduler.

# Type aliases

ErrorFunc is a function for error handling.
ID duplicates the influxdb ID so users of the scheduler don't have to import influxdb for the ID.