Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTimeout = errors.New("execution timed out")
Functions ¶
Types ¶
type Debouncer ¶
type Debouncer struct {
// contains filtered or unexported fields
}
Debouncer 防抖器
func NewDebouncer ¶
NewDebouncer 创建一个防抖器
type RetryOption ¶
type RetryOption func(*RetryOptions)
RetryOption 重试选项函数
func WithBackoff ¶
func WithBackoff(d time.Duration, factor float64) RetryOption
WithBackoff 设置初始等待时间和增长因子
type RetryOptions ¶
RetryOptions 重试配置
type Throttler ¶
type Throttler struct {
// contains filtered or unexported fields
}
Throttler 节流器
func NewThrottler ¶
NewThrottler 创建一个节流器
type TimeWheel ¶
type TimeWheel struct {
// contains filtered or unexported fields
}
TimeWheel 时间轮
func NewTimeWheel ¶
NewTimeWheel 创建一个时间轮
Click to show internal directories.
Click to hide internal directories.