Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ServiceSet = wire.NewSet(NewAuthService)
Functions ¶
This section is empty.
Types ¶
type AuthOption ¶
type AuthService ¶
type AuthService interface { ParseUserID(tokenString string) (string, error) GetToken(string) string }
func NewAuthService ¶
func NewAuthService() AuthService
type JwtAuthService ¶
type JwtAuthService struct { Opts *AuthOption Store *redis.Store }
func (*JwtAuthService) GetToken ¶
func (a *JwtAuthService) GetToken(auth string) string
func (*JwtAuthService) ParseUserID ¶
func (a *JwtAuthService) ParseUserID(tokenString string) (string, error)
ParseUserID 解析用户ID
Click to show internal directories.
Click to hide internal directories.