Documentation
¶
Index ¶
- type AlertBot
- type Limiter
- func (o *Limiter) Capacity() int
- func (o *Limiter) Close()
- func (o *Limiter) Push(text string) bool
- func (o *Limiter) Size() int
- func (o *Limiter) WithCapacity(capacity int) *Limiter
- func (o *Limiter) WithInterval(interval time.Duration) *Limiter
- func (o *Limiter) WithPrePop(prepop func(func() (string, bool)) (string, bool)) *Limiter
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 ¶
func (*Limiter) WithCapacity ¶
Click to show internal directories.
Click to hide internal directories.