auth

package
v1.10.33-lts Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxIPCount     = 100
	ExpireDuration = 30 * time.Minute
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IPRecord

type IPRecord struct {
	NeedCaptcha bool
	LastUpdate  time.Time
}

type IPTracker

type IPTracker struct {
	// contains filtered or unexported fields
}

func NewIPTracker

func NewIPTracker() *IPTracker

func (*IPTracker) Clear

func (t *IPTracker) Clear(ip string)

func (*IPTracker) NeedCaptcha

func (t *IPTracker) NeedCaptcha(ip string) bool

func (*IPTracker) SetNeedCaptcha

func (t *IPTracker) SetNeedCaptcha(ip string)

Jump to

Keyboard shortcuts

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