Documentation ¶
Index ¶
- Constants
- type JwtClaims
- type JwtMould
- func (j *JwtMould) Claims(r *http.Request) *JwtClaims
- func (j *JwtMould) ClaimsToken(auth string) *JwtClaims
- func (j *JwtMould) GetClaims(authorization string) *JwtClaims
- func (j *JwtMould) Token(userid int, username, account string, roleID int, orgID int) (string, error)
- func (j *JwtMould) UpdateToken(token *JwtClaims) (string, error)
Constants ¶
View Source
const ( DefaultAccessSecret = "jwtx" DefaultAccessExpire = 3 * 24 * 60 * 60 // 三天 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JwtMould ¶
func DefaultJwt ¶
func DefaultJwt() *JwtMould
func (*JwtMould) ClaimsToken ¶
Click to show internal directories.
Click to hide internal directories.