Documentation ¶
Index ¶
Constants ¶
View Source
const ( SIGNING_KEY string = "dl-jwt-key" EXPIRE_TIME time.Duration = 24 // 过期时间24小时 ISSUER string = "lrobin" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseClaims ¶
type JWT ¶
type JWT struct {
SigningKey []byte
}
func (*JWT) CreateClaims ¶
func (j *JWT) CreateClaims(baseClaims BaseClaims, expiresTime int64, issuer string) Claims
Click to show internal directories.
Click to hide internal directories.