bruteforce

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Protection

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

func NewProtection

func NewProtection(loginRepo repository.LoginAttemptRepository, blacklistRepo repository.IPBlacklistRepository) *Protection

func (*Protection) Cleanup

func (p *Protection) Cleanup() error

func (*Protection) IsBlocked

func (p *Protection) IsBlocked(ip string) (bool, error)

func (*Protection) RecordFailure

func (p *Protection) RecordFailure(ip, email string) error

func (*Protection) RecordSuccess

func (p *Protection) RecordSuccess(ip, email string) error

Jump to

Keyboard shortcuts

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