identify

package
v0.0.0-...-df00f50 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2018 License: MIT Imports: 16 Imported by: 3

Documentation

Index

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 CaptchaNew

func CaptchaNew(imgWidth, imgHeight int) *captchaHandler

* 生成实例

func GetSessionStore

func GetSessionStore() *sessionStore

func New

func New(context *gin.Context) string

func NewLen

func NewLen(context *gin.Context, length int) (id string)

func Verify

func Verify(id string, digits []byte) bool

func VerifyString

func VerifyString(id string, digits string, context *gin.Context) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL