redis

package
v0.0.0-...-7f18cf7 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Ratelimiting  = "ratelimiting"
	LoginAttempts = "loginAttempts"
)

Variables

This section is empty.

Functions

func GetLoginAttempts

func GetLoginAttempts(email string) int

GetLoginAttempts returns the login attempts count for a given email address.

func GetRequestCount

func GetRequestCount(ip string) int

GetRequestCount returns the request count for a given IP address.

func IncLoginAttempts

func IncLoginAttempts(email string) error

func IncRequestCount

func IncRequestCount(ip string) error

func ResetLoginAttempts

func ResetLoginAttempts(email string)

ResetLoginAttempts resets the login attempts count for a given email address.

Types

This section is empty.

Jump to

Keyboard shortcuts

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