Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnableCron ¶
func EnableGracefulShutdown ¶
func ProvideJob ¶
Types ¶
type JobProperties ¶
type JobsProperties ¶
type JobsProperties struct {
Jobs map[string]JobProperties
}
func NewJobsProperties ¶
func NewJobsProperties(loader config.Loader) (*JobsProperties, error)
func (*JobsProperties) Prefix ¶
func (t *JobsProperties) Prefix() string
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
func NewScheduler ¶
func NewScheduler(params SchedulerConstructorParams) (*Scheduler, error)
type SchedulerConstructorParams ¶
type SchedulerConstructorParams struct { fx.In Properties *JobsProperties Jobs []cron.Job `group:"cron_job"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.