Documentation ¶
Index ¶
- func AddTickerFunc(key string, fx Func, ctx *context.Context, d time.Duration) error
- func AddTimerFunc(key string, fx Func, ctx *context.Context, d time.Duration) error
- func RemoveTickerFunc(key string)
- func RemoveTimerFunc(key string)
- func ResetTickerFunc(key string, d time.Duration) error
- func ResetTimerFunc(key string, d time.Duration) error
- func SetParamsTickerFunc(key string, pKey any, pValue any) error
- func SetParamsTimerFunc(key string, pKey any, pValue any) error
- type Func
- type FuncName
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddTickerFunc ¶ added in v0.0.50
func AddTimerFunc ¶ added in v0.0.50
func RemoveTickerFunc ¶ added in v0.0.50
func RemoveTickerFunc(key string)
func RemoveTimerFunc ¶ added in v0.0.50
func RemoveTimerFunc(key string)
func SetParamsTickerFunc ¶ added in v0.0.50
Types ¶
type FuncName ¶ added in v0.0.50
type FuncName struct { Key string `json:"key"` RunTime int64 `json:"run_time"` Interval time.Duration `json:"interval"` }
func RangeTickerFunc ¶ added in v0.0.50
func RangeTickerFunc() []FuncName
RangeTickerFunc 获取当前所有的计时器函数信息
func RangeTimerFunc ¶ added in v0.0.50
func RangeTimerFunc() []FuncName
RangeTimerFunc 获取当前所有的定时器函数信息
Click to show internal directories.
Click to hide internal directories.