clock

package
v0.0.0-...-021ab65 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Recover

func Recover(cleanups ...func())

func RunSafe

func RunSafe(fn func(), cleanups ...func())

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) RunLastDay

func (t *TickerExecute) RunLastDay(j jobTask)

RunLastDay 统计昨天

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 定时闹钟

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL