Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RateLimiter ¶
type RateLimiter struct {
// contains filtered or unexported fields
}
func NewRateLimiter ¶
func NewRateLimiter(rate uint32, timeout time.Duration) *RateLimiter
func (*RateLimiter) Take ¶
func (l *RateLimiter) Take(id string) bool
Click to show internal directories.
Click to hide internal directories.