Documentation ¶
Index ¶
- Constants
- type Captcha
- func (c *Captcha) AddBackColors(colors ...color.Color)
- func (c *Captcha) AddColors(colors ...color.Color)
- func (c *Captcha) AddFonts(paths ...string)
- func (c *Captcha) Create(num int, option CaptchaType) (*Image, string)
- func (c *Captcha) SetDisturbLevel(disturb DisturbLevel)
- func (c *Captcha) SetSize(width, height int)
- type CaptchaType
- type DisturbLevel
- type Image
- type Size
Constants ¶
View Source
const ( NUM = iota //number LCHAR //Lowercase letters UCHAR //Upper case letters ALL //number+letters )
常量
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Captcha ¶
type Captcha struct {
// contains filtered or unexported fields
}
Captcha
func (*Captcha) AddBackColors ¶
AddBackColors
func (*Captcha) Create ¶
func (c *Captcha) Create(num int, option CaptchaType) (*Image, string)
Create
func (*Captcha) SetDisturbLevel ¶
func (c *Captcha) SetDisturbLevel(disturb DisturbLevel)
SetDisturbLevel 设置干扰级别
type DisturbLevel ¶
type DisturbLevel int
干扰级别
const ( NONE DisturbLevel = iota NORMAL MEDIUM HIGH )
干扰级别
Click to show internal directories.
Click to hide internal directories.