antibruteforce

package
v0.0.0-...-2e27f8b Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository interface {
	BlacklistAdd(ctx context.Context, subnet string) error
	BlacklistRemove(ctx context.Context, subnet string) error
	WhitelistAdd(ctx context.Context, subnet string) error
	WhitelistRemove(ctx context.Context, subnet string) error
	FindIPInList(ctx context.Context, ip string) (string, error)
}

Repository interface contain methods to work with storage

type Usecase

type Usecase interface {
	Check(ctx context.Context, login string, password string, ip string) error
	Reset(ctx context.Context, login string, ip string) error
	BlacklistAdd(ctx context.Context, subnet string) error
	BlacklistRemove(ctx context.Context, subnet string) error
	WhitelistAdd(ctx context.Context, subnet string) error
	WhitelistRemove(ctx context.Context, subnet string) error
}

Usecase interface contain main antibruteforce methods

Directories

Path Synopsis
delivery

Jump to

Keyboard shortcuts

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