package
1.8.8
Repository: https://github.com/fzf-labs/fpkg.git
Documentation: pkg.go.dev

# README

# Packages

No description provided by the author

# Functions

Align returns a func to customize a RedisSlidingWindow with alignment.
NewCounter 单机版计数器 构造函数.
No description provided by the author
NewRedisSlidingWindow 返回具有给定参数的RedisSlidingWindow。.
No description provided by the author
No description provided by the author
NewTokenLimiter 返回一个新的令牌限制器,该令牌限制器允许事件达到速率,并允许最多突发令牌的突发。.

# Constants

Allowed means allowed state.
HitQuota means this request exactly hit the quota.
OverQuota means passed the quota.
Unknown means not initialized state.

# Variables

ErrUnknownCode is an error that represents unknown status code.

# Structs

Counter 单机版计数器.
LeakyBucket 单机版漏桶算法.
No description provided by the author
RedisTokenBucket 控制事件在一秒钟内发生的频率。.
SlidingWindow 单机版滑动窗口.
TokenBucket 单机版令牌桶.
UberLeakyBucket uber单机版漏桶算法.

# Type aliases

No description provided by the author