limiter

package
v1.14.0-RC6 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigRateLimits

func ConfigRateLimits(limit float64)

ConfigRateLimits configures rate limits used in app.

Should be called only once while application starting process.

func UserRateLimit

func UserRateLimit(handler http.HandlerFunc) http.HandlerFunc

UserRateLimit is a middleware that performs rate-limiting given request handler function.

Types

This section is empty.

Jump to

Keyboard shortcuts

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