captcha

package
v0.20.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisCaptchaStore

type RedisCaptchaStore struct {
	Expiration time.Duration
	PreKey     string
	Context    context.Context
}

func NewCaptchaRedisStore

func NewCaptchaRedisStore() *RedisCaptchaStore

func (*RedisCaptchaStore) Get

func (rs *RedisCaptchaStore) Get(key string, clear bool) string

func (*RedisCaptchaStore) GetCapBlack

func (rs *RedisCaptchaStore) GetCapBlack(k string) (int, error)

func (*RedisCaptchaStore) IncrCapBy

func (rs *RedisCaptchaStore) IncrCapBy(k string, v int64)

func (*RedisCaptchaStore) Set

func (rs *RedisCaptchaStore) Set(id string, value string) error

func (*RedisCaptchaStore) SetCapBlack

func (rs *RedisCaptchaStore) SetCapBlack(k string, d time.Duration)

func (*RedisCaptchaStore) UseWithCtx

func (rs *RedisCaptchaStore) UseWithCtx(ctx context.Context) base64Captcha.Store

func (*RedisCaptchaStore) Verify

func (rs *RedisCaptchaStore) Verify(id, answer string, clear bool) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL