Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var New = c.NewWithContextValidate[Scheduler, SchedulerOption]
Functions ¶
This section is empty.
Types ¶
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]Job) SchedulerOption
func WithLogger ¶
func WithLogger(logger *zap.Logger) SchedulerOption
func WithShutdownTimeout ¶
func WithShutdownTimeout(t time.Duration) SchedulerOption
Click to show internal directories.
Click to hide internal directories.