captcha

package
v0.0.0-...-d5480cd Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildBase64Store

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

func GetBuildBase64Store

func GetBuildBase64Store() *BuildBase64Store

func (*BuildBase64Store) Get

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

Get implements base64Captcha.Store.

func (*BuildBase64Store) Set

func (rs *BuildBase64Store) Set(key string, value string) error

Set implements base64Captcha.Store.

func (*BuildBase64Store) UseWithCtx

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

func (*BuildBase64Store) Verify

func (rs *BuildBase64Store) Verify(key string, answer string, clear bool) bool

Verify implements base64Captcha.Store.

type BuildCountStore

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

func GetBuildCountStore

func GetBuildCountStore() *BuildCountStore

func (*BuildCountStore) AddCount

func (rs *BuildCountStore) AddCount(key string)

func (*BuildCountStore) DelCount

func (rs *BuildCountStore) DelCount(key string)

func (*BuildCountStore) GetCount

func (rs *BuildCountStore) GetCount(key string) int

func (*BuildCountStore) InitCount

func (rs *BuildCountStore) InitCount(key string)

func (*BuildCountStore) UseWithCtx

func (rs *BuildCountStore) UseWithCtx(ctx context.Context) *BuildCountStore

type LoginCountStore

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

func GetLoginCountStore

func GetLoginCountStore() *LoginCountStore

func (*LoginCountStore) AddCount

func (rs *LoginCountStore) AddCount(key string)

func (*LoginCountStore) DelCount

func (rs *LoginCountStore) DelCount(key string)

func (*LoginCountStore) GetCount

func (rs *LoginCountStore) GetCount(key string) int

func (*LoginCountStore) InitCount

func (rs *LoginCountStore) InitCount(key string)

func (*LoginCountStore) UseWithCtx

func (rs *LoginCountStore) UseWithCtx(ctx context.Context) *LoginCountStore

Jump to

Keyboard shortcuts

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