Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SHARDS = uint64(128)
Functions ¶
Types ¶
type RateLimiter ¶
type RateLimiter struct {
// contains filtered or unexported fields
}
func NewRateLimiter ¶
func NewRateLimiter() *RateLimiter
func (*RateLimiter) GetShard ¶
func (l *RateLimiter) GetShard(key int64) *Shard
func (*RateLimiter) Len ¶
func (l *RateLimiter) Len() int64
func (*RateLimiter) Remove ¶
func (l *RateLimiter) Remove(key string)
Click to show internal directories.
Click to hide internal directories.