Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checker ¶
type Checker interface {
MaxTryChecker
ExceptionLockChecKer
IPProtectChecker
}
Checker 安全检测
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 失败重试限制
Click to show internal directories.
Click to hide internal directories.