Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CaptchaSet = wire.NewSet(NewCaptcha, NewConfig, NewDrive, NewStore)
Functions ¶
Types ¶
type Captcha ¶
type Captcha struct {
*base64Captcha.Captcha
}
func NewCaptcha ¶
func NewCaptcha(driver base64Captcha.Driver, store *base64Captcha.Store) (*Captcha, error)
type Config ¶
type Config struct {
// local store default memory store
// only supports single machine deployment
// please customize Redis store for multiple servers
StoreType StoreType
DriveType DriveType
// Height Captcha png height in pixel.
Height int
// Width Captcha png width in pixel.
Width int
// Captcha length
Length int
}
Click to show internal directories.
Click to hide internal directories.