rwheel

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTickerFunc added in v0.0.50

func AddTickerFunc(key string, fx Func, ctx *context.Context, d time.Duration) error

func AddTimerFunc added in v0.0.50

func AddTimerFunc(key string, fx Func, ctx *context.Context, d time.Duration) error

func RemoveTickerFunc added in v0.0.50

func RemoveTickerFunc(key string)

func RemoveTimerFunc added in v0.0.50

func RemoveTimerFunc(key string)

func ResetTickerFunc added in v0.0.50

func ResetTickerFunc(key string, d time.Duration) error

func ResetTimerFunc added in v0.0.50

func ResetTimerFunc(key string, d time.Duration) error

func SetParamsTickerFunc added in v0.0.50

func SetParamsTickerFunc(key string, pKey any, pValue any) error

func SetParamsTimerFunc added in v0.0.50

func SetParamsTimerFunc(key string, pKey any, pValue any) error

Types

type Func added in v0.0.50

type Func func(funcKey string, ctx *context.Context)

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 获取当前所有的定时器函数信息

Jump to

Keyboard shortcuts

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