Documentation
¶
Index ¶
- func SetDefaultOption(opt Option)
- func Token(data ...map[string]interface{}) (string, error)
- func TokenWithKey(key []byte, data ...map[string]interface{}) (string, error)
- func Verify(s string) (map[string]interface{}, error)
- func VerifyWithKey(key []byte, s string) (map[string]interface{}, error)
- type JWT
- func (jwt *JWT) Token(data ...map[string]interface{}) (string, error)
- func (jwt *JWT) TokenWithKey(key []byte, data ...map[string]interface{}) (string, error)
- func (jwt *JWT) Verify(s string) (map[string]interface{}, error)
- func (jwt *JWT) VerifyWithKey(key []byte, s string) (map[string]interface{}, error)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TokenWithKey ¶
TokenWithKey 生成 token
Types ¶
Click to show internal directories.
Click to hide internal directories.