Documentation
¶
Index ¶
- type CaptchaCode
- type CaptchaService
- func (c *CaptchaService) GenerateImageMath(width int, height int, ttl ...time.Duration) (code *CaptchaCode, err error)
- func (c *CaptchaService) GenerateImageString(width int, height int, codeLen int, ttl ...time.Duration) (code *CaptchaCode, err error)
- func (c *CaptchaService) SetFonts(fonts []string) *CaptchaService
- func (c *CaptchaService) SetFontsStorage(storage base64Captcha.FontsStorage) *CaptchaService
- func (c *CaptchaService) Verify(id string, val string, sendTo string, clear bool) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CaptchaCode ¶
type CaptchaService ¶
type CaptchaService struct {
// contains filtered or unexported fields
}
func NewCaptchaService ¶
func (*CaptchaService) GenerateImageMath ¶
func (c *CaptchaService) GenerateImageMath(width int, height int, ttl ...time.Duration) (code *CaptchaCode, err error)
func (*CaptchaService) GenerateImageString ¶
func (c *CaptchaService) GenerateImageString(width int, height int, codeLen int, ttl ...time.Duration) (code *CaptchaCode, err error)
func (*CaptchaService) SetFonts ¶
func (c *CaptchaService) SetFonts(fonts []string) *CaptchaService
func (*CaptchaService) SetFontsStorage ¶
func (c *CaptchaService) SetFontsStorage(storage base64Captcha.FontsStorage) *CaptchaService
Click to show internal directories.
Click to hide internal directories.