Documentation ¶
Index ¶
- func Recover(cleanups ...func())
- func RunSafe(fn func(), cleanups ...func())
- type TickerExecute
- func (t *TickerExecute) Cancel()
- func (t *TickerExecute) GetSleepTime() time.Duration
- func (t *TickerExecute) Run(j jobTask)
- func (t *TickerExecute) RunLastDay(j jobTask)
- func (t *TickerExecute) SetDay(day int)
- func (t *TickerExecute) SetEndTime(hour, minter, second int)
- func (t *TickerExecute) SetIntervalCalibrateFunc(f func() time.Duration)
- func (t *TickerExecute) SetIntervalTimer(value time.Duration)
- func (t *TickerExecute) SetRetryTime(duration time.Duration)
- func (t *TickerExecute) SetStartTime(hour, minter, second int)
- func (t *TickerExecute) SetTimerAlarmClock(hour, minter, second int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TickerExecute ¶
type TickerExecute struct {
// contains filtered or unexported fields
}
func NewTickerExecute ¶
func NewTickerExecute() *TickerExecute
func (*TickerExecute) Cancel ¶
func (t *TickerExecute) Cancel()
func (*TickerExecute) GetSleepTime ¶
func (t *TickerExecute) GetSleepTime() time.Duration
func (*TickerExecute) Run ¶
func (t *TickerExecute) Run(j jobTask)
func (*TickerExecute) SetDay ¶
func (t *TickerExecute) SetDay(day int)
func (*TickerExecute) SetEndTime ¶
func (t *TickerExecute) SetEndTime(hour, minter, second int)
func (*TickerExecute) SetIntervalCalibrateFunc ¶
func (t *TickerExecute) SetIntervalCalibrateFunc(f func() time.Duration)
func (*TickerExecute) SetIntervalTimer ¶
func (t *TickerExecute) SetIntervalTimer(value time.Duration)
SetIntervalTimer 设置间隔时间
func (*TickerExecute) SetRetryTime ¶
func (t *TickerExecute) SetRetryTime(duration time.Duration)
SetRetryTime 发生错误时候重试时间
func (*TickerExecute) SetStartTime ¶
func (t *TickerExecute) SetStartTime(hour, minter, second int)
func (*TickerExecute) SetTimerAlarmClock ¶
func (t *TickerExecute) SetTimerAlarmClock(hour, minter, second int)
SetTimerAlarmClock 定时闹钟
Click to show internal directories.
Click to hide internal directories.