Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewContext ¶
func NewContext(ctx context.Context, user IdentityUser) context.Context
NewContext 创建验证上下文
Types ¶
type Config ¶
Config 登錄驗證設定
func (*Config) IsIdentityUser ¶
func (c *Config) IsIdentityUser(user *IdentityUser, route string) bool
IsIdentityUser 验证是否通过
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler 函數調用跟蹤器
var ( //DefaultHandler 默認AOP攔截器 DefaultHandler *Handler )
type IdentityUser ¶
IdentityUser 驗證用戶信息
Click to show internal directories.
Click to hide internal directories.