Documentation
¶
Index ¶
- Constants
- type Component
- func (c *Component) Destroy() error
- func (c *Component) GetCaptcha() slide.Captcha
- func (c *Component) GetCaptchaData() (*SlideCaptchaData, error)
- func (c *Component) Init(config config2.IConfig) error
- func (c *Component) ValidateCode(code string) bool
- func (c *Component) 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 Component ¶
type Component struct {
// contains filtered or unexported fields
}
func (*Component) GetCaptcha ¶
func (*Component) GetCaptchaData ¶ added in v0.1.1
func (c *Component) GetCaptchaData() (*SlideCaptchaData, error)
func (*Component) ValidateCode ¶ added in v0.1.2
type SlideCaptcha ¶ added in v0.1.1
type SlideCaptcha struct {
}
type SlideCaptchaData ¶ added in v0.1.1
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.