Documentation ¶
Index ¶
- Variables
- func BcryptString(s string) (string, error)
- func CodeCaptchaCreate(height, width int) (string, string)
- func EncodeMD5(value string) string
- func GenRandCode(width int) string
- func GenerateToken(username, password string) (string, time.Time, error)
- func GetPage(c *gin.Context) int
- func GlobalGet(key string)
- func GlobalSet(key, value string)
- func Pagination(url string, totalnum int, page int, pagesize int) (s string)
- func Pagination_tpl(url, text, active string) string
- func RefreshToken(token string) (string, time.Time, error)
- func VerfiyCaptcha(idkey, verifyValue string) bool
- func VerifyString(s, hash string) bool
- type Claims
- type Mail
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // GCLimitNumber The number of captchas created that triggers garbage collection used by default store. // 默认图像验证GC清理的上限个数 GCLimitNumber = 10240 // Expiration time of captchas used by default store. // 内存保存验证码的时限 Expiration = 5 * time.Minute )
Functions ¶
func CodeCaptchaCreate ¶
func GenRandCode ¶
func Pagination ¶
bootstrap 翻页,命名与 bootstrap 保持一致 Pagination("?page={page}", 30, 1, 20)
func Pagination_tpl ¶
func RefreshToken ¶
刷新token 拿老的token换新的token
func VerfiyCaptcha ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.