Versions in this module Expand all Collapse all v0 v0.2.0 Apr 17, 2020 Changes in this version + func Captchaer(options ...Options) macaron.Handler + type Captcha struct + CachePrefix string + ChallengeNums int + ColorPalette color.Palette + Expiration int64 + FieldCaptchaName string + FieldIdName string + StdHeight int + StdWidth int + SubURL string + URLPrefix string + func NewCaptcha(opt Options) *Captcha + func (c *Captcha) CreateCaptcha() (string, error) + func (c *Captcha) CreateHTML() template.HTML + func (c *Captcha) CreateHtml() template.HTML + func (c *Captcha) Verify(id string, challenge string) bool + func (c *Captcha) VerifyReq(req macaron.Request) bool + type Image struct + func NewImage(digits []byte, width, height int, colorPalette color.Palette) *Image + func (m *Image) WriteTo(w io.Writer) (int64, error) + type Options struct + CachePrefix string + ChallengeNums int + ColorPalette color.Palette + Expiration int64 + FieldCaptchaName string + FieldIdName string + Height int + SubURL string + URLPrefix string + Width int