package
0.0.0-20230816073800-5da36973e672
Repository: https://github.com/lc-1010/oneblogservice.git
Documentation: pkg.go.dev

# Functions

No description provided by the author

# Structs

Limiter bucket of ratelimit.
LimiterBucketRule Limiter bucket rule capacity is the number of requests in the bucket fill interval is the interval of the bucket Key:自定义键值对名称。 FillInterval:间隔多久时间放 N 个令牌。 Capacity:令牌桶的容量。 Quantum:每次到达间隔时间后所放的具体令牌数量。.
MethodLimiter for router limiter implement LimiterInterface.

# Interfaces

LimiterInterface Limiter interface Key:获取对应的限流器的键值对名称。 Key returns the key for the given gin context.