rate_limiter

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRateLimitOTPKey added in v1.2.0

func CreateRateLimitOTPKey(realIP, userId string) string

func CreateRateLimitPasscodeKey added in v1.0.0

func CreateRateLimitPasscodeKey(realIP, email string) string

func CreateRateLimitPasswordKey added in v1.0.0

func CreateRateLimitPasswordKey(realIP, userId string) string

func CreateRateLimitTokenExchangeKey added in v1.0.0

func CreateRateLimitTokenExchangeKey(realIP string) string

func Limit

func Limit(store limiter.Store, userId uuid.UUID, c echo.Context) error

func Limit2 added in v1.0.0

func Limit2(store limiter.Store, key string) (int, bool, error)

func NewRateLimiter

func NewRateLimiter(cfg config.RateLimiter, limits config.RateLimits) limiter.Store

Types

This section is empty.

Jump to

Keyboard shortcuts

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