captcha

package
v0.0.0-...-75939a1 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2022 License: MIT Imports: 2 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 {
	// contains filtered or unexported fields
}

func NewRedisStore

func NewRedisStore(rdc *redis.Client) *RedisStore

func (*RedisStore) Get

func (s *RedisStore) Get(id string, clear bool) string

Get returns stored digits for the captcha id. Clear indicates whether the captcha must be deleted from the store.

func (*RedisStore) Set

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

Set sets the digits for the captcha id.

func (*RedisStore) Verify

func (s *RedisStore) Verify(id, answer string, clear bool) bool

Verify captcha's answer directly

Jump to

Keyboard shortcuts

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