Documentation
¶
Index ¶
- Variables
- type Config
- type JobConfig
- type Scheduler
- type SchedulerOption
- func WithGocronOptions(opts ...gocron.SchedulerOption) SchedulerOption
- func WithJob(jobName string, cfg JobConfig) SchedulerOption
- func WithJobRegistry(jobs map[string]run.Fn) SchedulerOption
- func WithLogger(logger *zap.Logger) SchedulerOption
- func WithShutdownTimeout(t time.Duration) SchedulerOptiondeprecated
Constants ¶
This section is empty.
Variables ¶
View Source
var New = c.NewWithContextValidate[Scheduler, SchedulerOption]
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
func (Scheduler) WaitForShutdown
deprecated
type SchedulerOption ¶
type SchedulerOption c.OptionWithContext[Scheduler]
func WithGocronOptions ¶ added in v0.8.7
func WithGocronOptions(opts ...gocron.SchedulerOption) SchedulerOption
func WithJob ¶
func WithJob(jobName string, cfg JobConfig) SchedulerOption
func WithJobRegistry ¶
func WithJobRegistry(jobs map[string]run.Fn) SchedulerOption
func WithLogger ¶
func WithLogger(logger *zap.Logger) SchedulerOption
func WithShutdownTimeout
deprecated
func WithShutdownTimeout(t time.Duration) SchedulerOption
Deprecated: Use closer centralized mechanics instead.
Click to show internal directories.
Click to hide internal directories.