Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TokenBucket ¶
type TokenBucket struct {
// contains filtered or unexported fields
}
func (*TokenBucket) Allow ¶
func (bucket *TokenBucket) Allow() bool
func (*TokenBucket) Init ¶
func (bucket *TokenBucket) Init(rate, cap int64)
Click to show internal directories.
Click to hide internal directories.