captcha

package
v0.0.0-...-9dab128 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisStore

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

func NewDefaultRedisStore

func NewDefaultRedisStore() *RedisStore

func (*RedisStore) Get

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

func (*RedisStore) Set

func (rs *RedisStore) Set(id string, value string)

func (*RedisStore) UseWithCtx

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

func (*RedisStore) Verify

func (rs *RedisStore) 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