Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Limiter ¶
type Limiter struct {
// contains filtered or unexported fields
}
func NewLimiter ¶
NewLimiter initializes a new limiter with the specified capacity
func (*Limiter) ReleaseAfterDelay ¶
ReleaseAfterDelay releases the limiter after the specified delay
func (*Limiter) SetCapacity ¶
SetCapacity updates the rate limiter's capacity
Click to show internal directories.
Click to hide internal directories.