Versions in this module Expand all Collapse all v3 v3.1.0 Oct 11, 2022 Changes in this version + const ExtraDelay + var ErrTimedOutEarly = errors.New("rate: rate limit exceeds context deadline or is blocked acquire options") + var MajorRootPaths = []string + func EmojiRune(r rune) bool + func ParseBucketKey(path string) string + func StringIsCustomEmoji(emoji string) bool + func StringIsEmojiOnly(emoji string) bool + type AcquireOptions struct + DontWait bool + func (opts AcquireOptions) Context(ctx context.Context) context.Context + type CustomRateLimit struct + Contains string + Reset time.Duration + type Limiter struct + CustomLimits []*CustomRateLimit + Prefix string + func NewLimiter(prefix string) *Limiter + func (l *Limiter) Acquire(ctx context.Context, path string) error + func (l *Limiter) Release(path string, headers http.Header) error