Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Enabled bool `yaml:"enabled" env:"CRON_ENABLED" default:"true"`
Location string `yaml:"location" env:"CRON_LOCATION" default:"Local"`
EnableTrace bool `yaml:"enable_trace" env:"CRON_ENABLE_TRACE" default:"true"`
}
Config Cron 配置结构体(用于从配置文件创建)
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
Scheduler Cron 调度器
func (*Scheduler) GetTaskInfo ¶
GetTaskInfo 获取任务信息
Click to show internal directories.
Click to hide internal directories.