Versions in this module Expand all Collapse all v1 v1.3.12 Jun 29, 2024 v1.0.0 Apr 5, 2024 Changes in this version + func MustNewOriginalRedisCaptcha(c Conf, r redis.UniversalClient) *base64Captcha.Captcha + func MustNewRedisCaptcha(c Conf, r *redis2.Redis) *base64Captcha.Captcha + func NewDriver(c Conf) base64Captcha.Driver + type Conf struct + Driver string + ImgHeight int + ImgWidth int + KeyLong int + type OriginalRedisStore struct + Context context.Context + Expiration time.Duration + PreKey string + Redis redis.UniversalClient + func NewOriginalRedisStore(r redis.UniversalClient) *OriginalRedisStore + func (r *OriginalRedisStore) Get(key string, clear bool) string + func (r *OriginalRedisStore) Set(id string, value string) error + func (r *OriginalRedisStore) UseWithCtx(ctx context.Context) base64Captcha.Store + func (r *OriginalRedisStore) Verify(id, answer string, clear bool) bool + type RedisStore struct + Context context.Context + Expiration time.Duration + PreKey string + Redis *redis.Redis + func NewRedisStore(r *redis.Redis) *RedisStore + func (r *RedisStore) Get(key string, clear bool) string + func (r *RedisStore) Set(id string, value string) error + func (r *RedisStore) UseWithCtx(ctx context.Context) base64Captcha.Store + func (r *RedisStore) Verify(id, answer string, clear bool) bool