Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
LimiterDropError = errors.New("drop request")
)
Functions ¶
func WithServerLimiterInterceptor ¶
func WithServerLimiterInterceptor() grpc.UnaryServerInterceptor
Types ¶
type BBR ¶
func NewBbrLimiter ¶
type Option ¶
type Option func(*options)
func WithBucketDuration ¶
WithBucketDuration 修改 bucketDuration
func WithCpuThreshold ¶
WithCpuThreshold 修改 cpuThreshold 参数
Click to show internal directories.
Click to hide internal directories.