Documentation
¶
Index ¶
- type Dcron
- func (d *Dcron) AddFunc(jobName, cronStr string, cmd func()) (id cron.EntryID, err error)
- func (d *Dcron) AddJob(jobName, cronStr string, job Job) (id cron.EntryID, err error)
- func (d *Dcron) GetJobInfo(jobName string) cron.Entry
- func (d *Dcron) Next(jobName string) time.Time
- func (d *Dcron) Remove(jobName string)
- func (d *Dcron) Run()
- func (d *Dcron) Start()
- func (d *Dcron) Stop()
- type Job
- type JobWarpper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dcron ¶
type Dcron struct { ServerName string // contains filtered or unexported fields }
Dcron is main struct
func (*Dcron) GetJobInfo ¶ added in v0.1.5
GetJobInfo 获取当前任务详情
Click to show internal directories.
Click to hide internal directories.