Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FixedWindowLimiter ¶
type FixedWindowLimiter struct {
// contains filtered or unexported fields
}
func NewFixedWindowLimiter ¶
func (*FixedWindowLimiter) Allow ¶
func (l *FixedWindowLimiter) Allow() bool
type SlidingWindowLimiter ¶
type SlidingWindowLimiter struct {
// contains filtered or unexported fields
}
func NewSlidingWindowLimiter ¶
func NewSlidingWindowLimiter(limit int, window time.Duration) *SlidingWindowLimiter
func (*SlidingWindowLimiter) Allow ¶
func (l *SlidingWindowLimiter) Allow() bool
Click to show internal directories.
Click to hide internal directories.