Documentation ¶
Index ¶
Constants ¶
View Source
const (
LUA_SCRIPT_LEAKY_BUCKET = `` /* 132-byte string literal not displayed */
)
Variables ¶
This section is empty.
Functions ¶
func NewRedisLeakyBucketImpl ¶
func NewRedisLeakyBucketImpl(cfg *RedisLeakyBucketImplConfig) *redisLeakyBucketImpl
Types ¶
type FixedWindow ¶
type FixedWindow struct {
// contains filtered or unexported fields
}
func NewFixedWindow ¶
func NewFixedWindow(rate uint64, duration time.Duration) *FixedWindow
func (*FixedWindow) Teke ¶
func (f *FixedWindow) Teke() time.Time
type LeakyBucket ¶
type LeakyBucket struct {
// contains filtered or unexported fields
}
func NewLeakyBucket ¶
func NewLeakyBucket(rate uint64, duration time.Duration) *LeakyBucket
func (*LeakyBucket) Take ¶
func (l *LeakyBucket) Take() time.Time
type RateLimitingInf ¶
Click to show internal directories.
Click to hide internal directories.