Documentation ¶
Index ¶
- Variables
- func Checktoken(t string) bool
- func Checktokencontext(t string) bool
- func ContextToken() string
- func CreateHash(key string) string
- func HeadTokerner(k interface{}) string
- func Keyen() []byte
- func Overrideclaims(t string)
- func Sevenkey() []byte
- func Timerkey() []byte
- func Timername() string
- func Tokerner() string
- type Keys
- type MyCustomClaims
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func Checktoken ¶
func Checktokencontext ¶
func ContextToken ¶
func ContextToken() string
func CreateHash ¶
func HeadTokerner ¶
func HeadTokerner(k interface{}) string
func Overrideclaims ¶
func Overrideclaims(t string)
Types ¶
type MyCustomClaims ¶
type MyCustomClaims struct { Name string `json:"name"` Admin bool `json:"admin"` Claims jwt.StandardClaims }
func (MyCustomClaims) Valid ¶
func (j MyCustomClaims) Valid() error
Click to show internal directories.
Click to hide internal directories.