multiratelimit

package
v2.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MultiRatelimiter

type MultiRatelimiter struct {
	// contains filtered or unexported fields
}

func NewMultiRatelimiter

func NewMultiRatelimiter(maxPerSecond float64, maxBurst int) *MultiRatelimiter

func (*MultiRatelimiter) AllowN

func (multi *MultiRatelimiter) AllowN(key interface{}, now time.Time, n int) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL