Documentation
¶
Index ¶
- type AlertBot
- type Limiter
- func (o *Limiter[T]) Capacity() int
- func (o *Limiter[T]) Close()
- func (o *Limiter[T]) Push(text T) bool
- func (o *Limiter[T]) Reset()
- func (o *Limiter[T]) Size() int
- func (o *Limiter[T]) WithCapacity(capacity int) *Limiter[T]
- func (o *Limiter[T]) WithInterval(interval time.Duration) *Limiter[T]
- func (o *Limiter[T]) WithPrePop(prepop func(func() (T, bool)) (T, bool)) *Limiter[T]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Limiter ¶
type Limiter[T any] struct { // contains filtered or unexported fields }
func NewLimiter ¶
func (*Limiter[T]) WithCapacity ¶
func (*Limiter[T]) WithInterval ¶
Click to show internal directories.
Click to hide internal directories.