Documentation
¶
Overview ¶
@Time : 2019-12-09 09:20 @Author : zr
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IntervalWork ¶
type IntervalWork struct {
// contains filtered or unexported fields
}
IntervalWork 间隔时间任务
func RegisterNewWork ¶
func RegisterNewWork(intervalTime time.Duration, loopFunc LoopFunc, onError OnError) *IntervalWork
func (*IntervalWork) Run ¶
func (i *IntervalWork) Run()
type ScheduleDayWork ¶
ScheduleWork 每日固定时间任务
func RegisterScheduleDayWork ¶
func RegisterScheduleDayWork(schedule time.Time, loopFunc LoopFunc, onError OnError) *ScheduleDayWork
func (*ScheduleDayWork) Run ¶
func (s *ScheduleDayWork) Run()
Click to show internal directories.
Click to hide internal directories.