Versions in this module Expand all Collapse all v2 v2.1.0 Aug 12, 2023 Changes in this version + func GetExpiry() time.Duration + func Image(id captcha.ID, style string) *image.Image + func IsSolved(id captcha.ID) bool + func New(data string, captcha captcha.Captcha) (captcha.Captcha, captcha.ID) + func Remove(id captcha.ID) + func SetExpiry(expiry time.Duration) + func Solve(id captcha.ID, answer captcha.Answer) bool + type InMemoryDB struct + func NewInMemoryDB(expiry time.Duration) *InMemoryDB + func (imcdb *InMemoryDB) GetExpiry() time.Duration + func (imcdb *InMemoryDB) Image(id captcha.ID, style string) *image.Image + func (imcdb *InMemoryDB) IsSolved(id captcha.ID) bool + func (imcdb *InMemoryDB) New(data string, cptcha captcha.Captcha) (captcha.Captcha, captcha.ID) + func (imcdb *InMemoryDB) Remove(id captcha.ID) + func (imcdb *InMemoryDB) SetExpiry(expiry time.Duration) + func (imcdb *InMemoryDB) Solve(id captcha.ID, answer captcha.Answer) bool