Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LeakyBucket ¶
type LeakyBucket struct {
// contains filtered or unexported fields
}
func (*LeakyBucket) Allow ¶
func (leaky *LeakyBucket) Allow() bool
func (*LeakyBucket) Set ¶
func (leaky *LeakyBucket) Set(rate, capacity float64)
Click to show internal directories.
Click to hide internal directories.