Documentation ¶
Index ¶
Constants ¶
View Source
const ( UCINFO_SALT = "@**nvwa-io**@" KEY_TOKEN = "Nvwa-Token" EXPIRE = 7 * 24 * 3600 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UCInfo ¶
tips: data = json.Marshal(UCInfo) sign = md5(data + salt) Nvwa-Token = 3des(data + SALT + sign)
type UserAuth ¶
type UserAuth struct{}
func NewUserAuth ¶
func NewUserAuth() *UserAuth
func (*UserAuth) ParseUserTokenFromHeader ¶
解析 Header 中的 Token
Click to show internal directories.
Click to hide internal directories.