Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrTokenInvalid = errors.New("couldn't handle this token")
)
Functions ¶
This section is empty.
Types ¶
type AuthToken ¶
type AuthToken struct {
SigningKey []byte // 密钥
Header map[string]interface{} // 头信息
Raw string // 加密token
}
func NewAuthToken ¶
func (*AuthToken) CreateToken ¶
CreateToken 创建一个token
func (*AuthToken) ParseFromRequest ¶
ParseFromRequest 解析token
Click to show internal directories.
Click to hide internal directories.