Documentation ¶
Index ¶
Constants ¶
View Source
const ( MiddlewarePeerRequestPerSecondKey = "Key.MiddlewarePeerRequestPerSecond" OpenSessionPerMinuteKey = "Key.OpenSessionPerMinute" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RateLimitInfo ¶
type RateLimitInfo struct { redis_rate.Limit KeyPrefix string }
type RateLimiter ¶
type RateLimiter struct {
// contains filtered or unexported fields
}
func New ¶
func New(ctx context.Context, rateLimit RateLimitInfo) *RateLimiter
Click to show internal directories.
Click to hide internal directories.