Documentation ¶
Index ¶
- func CreateRateLimitOTPKey(realIP, userId string) string
- func CreateRateLimitPasscodeKey(realIP, email string) string
- func CreateRateLimitPasswordKey(realIP, userId string) string
- func CreateRateLimitTokenExchangeKey(realIP string) string
- func Limit(store limiter.Store, userId uuid.UUID, c echo.Context) error
- func Limit2(store limiter.Store, key string) (int, bool, error)
- func NewRateLimiter(cfg config.RateLimiter, limits config.RateLimits) limiter.Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRateLimitOTPKey ¶ added in v1.2.0
func CreateRateLimitPasscodeKey ¶ added in v1.0.0
func CreateRateLimitPasswordKey ¶ added in v1.0.0
func CreateRateLimitTokenExchangeKey ¶ added in v1.0.0
func NewRateLimiter ¶
func NewRateLimiter(cfg config.RateLimiter, limits config.RateLimits) limiter.Store
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.