Documentation
¶
Index ¶
- Variables
- func RedisMqProduce(ctx context.Context, opt ...string) error
- type Channel
- type CustomJob
- type CustomJobHandler
- type Job
- func (j *Job) CrontabStatusWatcher()
- func (j *Job) GetChannel() *Channel
- func (j *Job) PrintCustomJobList()
- func (j *Job) RegisterChannel() *Job
- func (j *Job) RegisterCrontab() *Job
- func (j *Job) RegisterCustomJobs() *Job
- func (j *Job) RegisterStableJobs() *Job
- func (j *Job) RunCustomJob(ctx context.Context, wg *sync.WaitGroup, name string, params []string) error
- func (j *Job) Start() *Job
- func (j *Job) StartStableJob() *Job
- func (j *Job) Stop()
- func (j *Job) StopStableJob()
- type Schedule
- type ScheduleHandler
- type StableJob
- type StableJobHandler
Constants ¶
This section is empty.
Variables ¶
View Source
var (
StatusChan chan int
)
Functions ¶
Types ¶
type Job ¶
type Job struct { ScheduleList []*Schedule CustomJobList []*CustomJob StableJobList []*StableJob // contains filtered or unexported fields }
func (*Job) CrontabStatusWatcher ¶
func (j *Job) CrontabStatusWatcher()
func (*Job) RegisterChannel ¶
func (*Job) RegisterCrontab ¶
RegisterCrontab 注册定时任务 验证工具:http://www.jsons.cn/quartzcheck/
func (*Job) RegisterCustomJobs ¶
RegisterCustomJobs 注册用户命令行执行的方法
func (*Job) RegisterStableJobs ¶
RegisterStableJobs 注册常驻命令执行的方法
func (*Job) RunCustomJob ¶
func (j *Job) RunCustomJob(ctx context.Context, wg *sync.WaitGroup, name string, params []string) error
RunCustomJob 执行用户任务
func (*Job) StartStableJob ¶
func (*Job) StopStableJob ¶
func (j *Job) StopStableJob()
type ScheduleHandler ¶
type ScheduleHandler func()
type StableJobHandler ¶
Click to show internal directories.
Click to hide internal directories.