security

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

Checker 安全检测

func NewChecker

func NewChecker() (Checker, error)

NewChecker todo

type ExceptionLockChecKer

type ExceptionLockChecKer interface {
	OtherPlaceLoggedInChecK(context.Context, *token.Token) error
	NotLoginDaysChecK(context.Context, *token.Token) error
}

ExceptionLockChecKer 异地登录限制

type IPProtectChecker

type IPProtectChecker interface {
	IPProtectCheck(context.Context, *token.IssueTokenRequest) error
}

IPProtectChecker todo

type MaxTryChecker

type MaxTryChecker interface {
	MaxFailedRetryCheck(context.Context, *token.IssueTokenRequest) error
	UpdateFailedRetry(context.Context, *token.IssueTokenRequest) error
}

MaxTryChecker todo 失败重试限制

Jump to

Keyboard shortcuts

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