Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IpRateLimiter ¶
type IpRateLimiter struct {
// contains filtered or unexported fields
}
func NewIpRateLimiter ¶
func NewIpRateLimiter(r int, size int) *IpRateLimiter
func (*IpRateLimiter) GetLimiter ¶
func (t *IpRateLimiter) GetLimiter(ip string) *rate.Limiter
Click to show internal directories.
Click to hide internal directories.