Versions in this module Expand all Collapse all v0 v0.1.0 Oct 3, 2022 Changes in this version + var ServiceSet = wire.NewSet(NewAuthService) + type AuthOption struct + Expired int + KeyFunc jwt.Keyfunc + SigningKey interface{} + SigningMethod jwt.SigningMethod + TokenType string + type AuthService interface + GetToken func(string) string + ParseUserID func(tokenString string) (string, error) + func InitAuth(opt *AuthOption) AuthService + func NewAuthService() AuthService + type JwtAuthService struct + Opts *AuthOption + Store *redis.Store + func (a *JwtAuthService) GetToken(auth string) string + func (a *JwtAuthService) ParseUserID(tokenString string) (string, error)