Documentation ¶
Index ¶
- Variables
- func BcryptCheck(password, hash string) bool
- func BcryptHash(password string) string
- func EncodeMD5(str []byte, b ...byte) string
- type CaptchaRedisStore
- type JWTUtil
- func (jwtUtil *JWTUtil) CreateClaims(mobile string, userName string) apiCommon.JWTClaims
- func (jwtUtil *JWTUtil) GernerateToken(claims apiCommon.JWTClaims) (string, error)
- func (jwtUtil *JWTUtil) ParseToken(tokenString string) (*apiCommon.JWTClaims, error)
- func (jwtUtil *JWTUtil) Refresh(oldToken string, claims apiCommon.JWTClaims) (string, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func BcryptCheck ¶
func BcryptHash ¶
Types ¶
type CaptchaRedisStore ¶
func NewDefaultCaptchaRedisStore ¶
func NewDefaultCaptchaRedisStore() *CaptchaRedisStore
func (*CaptchaRedisStore) UseWithContext ¶
func (rs *CaptchaRedisStore) UseWithContext(ctx context.Context) base64Captcha.Store
type JWTUtil ¶
func NewJWTUtil ¶
func NewJWTUtil() *JWTUtil
func (*JWTUtil) CreateClaims ¶
func (*JWTUtil) GernerateToken ¶
func (*JWTUtil) ParseToken ¶
Click to show internal directories.
Click to hide internal directories.