account_takeover

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearLimitByIP

func ClearLimitByIP(ip string)

func ClearLimitByUserID

func ClearLimitByUserID(userID string)

func IsLimit

func IsLimit(ip string, userID string, rate rate.Limit) error

func IsLimitedByIPAddress

func IsLimitedByIPAddress(ip string, rate rate.Limit) bool

func IsLimitedByUserID

func IsLimitedByUserID(userID string, rate rate.Limit) bool

Types

type RateLimitter

type RateLimitter interface {
	Allow() bool
}

Jump to

Keyboard shortcuts

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