Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewZ1captcha ¶
func NewZ1captcha(params ...Param) (captcha *base64Captcha.NoStoreCaptcha)
Types ¶
type Param ¶
type Param struct {
// Height png height in pixel.
Height int `z1Default:"60"`
// Width Captcha png width in pixel.
Width int `z1Default:"180"`
// DefaultLen Default number of digits in captcha solution.
Length int `z1Default:"6"`
// Captcha Timeout.
Timeout int `z1Default:"300"`
// Captcha's id length.
IDLength int `z1Default:"10"`
//NoiseCount text noise count.
NoiseCount int `z1Default:"0"`
//ShowLineOptions := OptionShowHollowLine | OptionShowSlimeLine | OptionShowSineLine .
ShowLineOptions int `z1Default:"14"`
//Source is a unicode which is the rand string from.
Source string `z1Default:"1234567890abcdefghijklmnopqrstuvwxyz"`
//Password used in no store for id
Password string `z1Default:"myzero1"`
//BgColor captcha image background color (optional)
BgColor *color.RGBA
}
Click to show internal directories.
Click to hide internal directories.