Documentation ¶
Index ¶
- Variables
- func Base64Decode(src []byte) ([]byte, error)
- func Base64Encode(src []byte) []byte
- func EncodeMD5(str string) string
- func GenerateToken(email, password string) (string, error)
- func GetPage(c *gin.Context) int
- func RefreshToken(refreshToken string, expireTime time.Duration) (string, error)
- func Sha1Encode(data string) string
- type Claims
Constants ¶
This section is empty.
Variables ¶
View Source
var (
TokenInvalid error = errors.New("Couldn't handle this token \r")
)
Functions ¶
func Base64Decode ¶
func Base64Encode ¶
func RefreshToken ¶
func Sha1Encode ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.