Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidToken = errors.New("invalid token")
)
定义错误
Functions ¶
This section is empty.
Types ¶
type Auther ¶
type Auther interface { // 生成令牌 GenerateToken(ctx context.Context, userID string) (TokenInfo, error) // 销毁令牌 DestroyToken(ctx context.Context, accessToken string) error // 解析用户ID ParseMemberID(ctx context.Context, accessToken string) (string, error) // 释放资源 Release() error }
Auther 认证接口
Click to show internal directories.
Click to hide internal directories.