Documentation ¶
Index ¶
- type RedisCaptchaStore
- func (rs *RedisCaptchaStore) Get(key string, clear bool) string
- func (rs *RedisCaptchaStore) GetCapBlack(k string) (int, error)
- func (rs *RedisCaptchaStore) IncrCapBy(k string, v int64)
- func (rs *RedisCaptchaStore) Set(id string, value string) error
- func (rs *RedisCaptchaStore) SetCapBlack(k string, d time.Duration)
- func (rs *RedisCaptchaStore) UseWithCtx(ctx context.Context) base64Captcha.Store
- func (rs *RedisCaptchaStore) Verify(id, answer string, clear bool) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisCaptchaStore ¶
func NewCaptchaRedisStore ¶
func NewCaptchaRedisStore() *RedisCaptchaStore
func (*RedisCaptchaStore) GetCapBlack ¶
func (rs *RedisCaptchaStore) GetCapBlack(k string) (int, error)
func (*RedisCaptchaStore) IncrCapBy ¶
func (rs *RedisCaptchaStore) IncrCapBy(k string, v int64)
func (*RedisCaptchaStore) SetCapBlack ¶
func (rs *RedisCaptchaStore) SetCapBlack(k string, d time.Duration)
func (*RedisCaptchaStore) UseWithCtx ¶
func (rs *RedisCaptchaStore) UseWithCtx(ctx context.Context) base64Captcha.Store
Click to show internal directories.
Click to hide internal directories.