Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPRateLimiterT ¶
func NewIPRateLimiter ¶
func NewIPRateLimiter(rateSpeed int, bucketLen int, blackTimes int, intervalSecond int) *IPRateLimiterT
func (*IPRateLimiterT) BlackAllow ¶
func (i *IPRateLimiterT) BlackAllow(ipInt typ.IPInt) bool
func (*IPRateLimiterT) Len ¶
func (i *IPRateLimiterT) Len() int
Click to show internal directories.
Click to hide internal directories.