Documentation ¶
Index ¶
Constants ¶
View Source
const (
GCInterval = time.Minute
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPRateLimiter ¶
func NewIPRateLimiter ¶
NewIPRateLimiter .
func (*IPRateLimiter) CanServe ¶
func (i *IPRateLimiter) CanServe(ip string) bool
func (*IPRateLimiter) GetOreCreateLimiter ¶
func (i *IPRateLimiter) GetOreCreateLimiter(ip string) *rate.Limiter
Click to show internal directories.
Click to hide internal directories.