Documentation
¶
Index ¶
- Constants
- type Captcha
- func (c *Captcha) GetCaptcha() slide.Captcha
- func (c *Captcha) GetCaptchaData() (*SlideCaptchaData, error)
- func (c *Captcha) Init(context context.Context, config config2.IConfig) error
- func (c *Captcha) ValidateCode(code string) (bool, error)
- func (c *Captcha) ValidateThumb(code string, x string) (*Data, bool)
- type Config
- type Data
- type SlideCaptcha
- type SlideCaptchaData
Constants ¶
View Source
const Name = "captcha_component"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Captcha ¶
type Captcha struct {
// contains filtered or unexported fields
}
func (*Captcha) GetCaptcha ¶
func (*Captcha) GetCaptchaData ¶
func (c *Captcha) GetCaptchaData() (*SlideCaptchaData, error)
type SlideCaptcha ¶
type SlideCaptcha struct {
}
type SlideCaptchaData ¶
type SlideCaptchaData struct {
Type string `json:"type"`
TileImage string `json:"tileImage"`
MasterImage string `json:"masterImage"`
ThumbX int `json:"thumbX"`
ThumbCode string `json:"thumbCode"`
ThumbY int `json:"thumbY"`
ThumbWidth int `json:"thumbWidth"`
ThumbHeight int `json:"thumbHeight"`
ThumbAngle int `json:"thumbAngle"`
}
Click to show internal directories.
Click to hide internal directories.