Documentation
¶
Index ¶
Constants ¶
View Source
const ( Ratelimiting = "ratelimiting" LoginAttempts = "loginAttempts" )
Variables ¶
This section is empty.
Functions ¶
func GetLoginAttempts ¶
GetLoginAttempts returns the login attempts count for a given email address.
func GetRequestCount ¶
GetRequestCount returns the request count for a given IP address.
func IncLoginAttempts ¶
func IncRequestCount ¶
func ResetLoginAttempts ¶
func ResetLoginAttempts(email string)
ResetLoginAttempts resets the login attempts count for a given email address.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.