Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Captcha ¶
type Captcha struct {
*base64Captcha.Captcha
}
func NewCaptcha ¶
func (*Captcha) GenCodeAuto ¶
type Option ¶
type Option struct { // EnableRedis user redis as store. EnableRedis bool // Height png height in pixel. Height int // Width Captcha png width in pixel. Width int // DefaultLen Default number of digits in captcha solution. Length int // MaxSkew max absolute skew factor of a single digit. MaxSkew float64 // DotCount Number of background circles. DotCount int // ExpireTime Redis expireTime. ExpireTime time.Duration }
Click to show internal directories.
Click to hide internal directories.