Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrLimitExceed = errors.New(429, "RATELIMIT", "service unavailable due to rate limit exceeded")
ErrLimitExceed is service unavailable due to rate limit exceeded.
Functions ¶
Types ¶
type Option ¶
type Option func(*options)
Option is rate limiter option.
func WithLimiter ¶
func WithLimiter(limiter ratelimiter.RateLimiter) Option
WithLimiter set Limiter implementation, default is L-BBR limiter
Click to show internal directories.
Click to hide internal directories.