Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeJwt ¶
func DecodeJwt(secret Secret, tokenString EncodedJwt) (token *jwt.Token, err error)
Types ¶
type EncodedJwt ¶
type EncodedJwt string
func EncodeJwt ¶
func EncodeJwt(secret Secret, claims *jwt.StandardClaims) (EncodedJwt, error)
func GenJwt ¶
func GenJwt(secret Secret, fileId string) EncodedJwt
func GetJwt ¶
func GetJwt(r *http.Request) EncodedJwt
Click to show internal directories.
Click to hide internal directories.