Documentation ¶
Index ¶
- func DriverDigitFunc() (id, b64s string, err error)
- func DriverStringFunc() (id, b64s string, err error)
- func NewCacheStore(cache storage.AdapterCache, expiration int) base64Captcha.Store
- func SetPhone(phone, code string)
- func SetStore(s base64Captcha.Store)
- func Verify(id, code string, clear bool) bool
- func VerifyPhone(phone, code string, clear bool) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DriverDigitFunc ¶
func DriverStringFunc ¶
func NewCacheStore ¶
func NewCacheStore(cache storage.AdapterCache, expiration int) base64Captcha.Store
NewCacheStore returns a new standard memory store for captchas with the given collection threshold and expiration time (duration). The returned store must be registered with SetCustomStore to replace the default one.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.