Documentation ¶
Index ¶
- Variables
- func CaptchaNew(imgWidth, imgHeight int) *captchaHandler
- func GetSessionStore() *sessionStore
- func New(context *gin.Context) string
- func NewLen(context *gin.Context, length int) (id string)
- func Verify(id string, digits []byte) bool
- func VerifyString(id string, digits string, context *gin.Context) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var STORE_ERR_ID_EXISTS = errors.New("id exists, please reload")
重复的id
View Source
var STORE_ERR_REMOVE_EMPTY = errors.New("invalid id, please reload")
无效的id,请刷新
Functions ¶
func GetSessionStore ¶
func GetSessionStore() *sessionStore
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.