captcha

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func B64WithType added in v0.1.0

func B64WithType(v B64Type) common.Option[b64Manager]

Types

type B64Type

type B64Type string
const (
	B64TypeDigit  B64Type = "digit"
	B64TypeString B64Type = "string"
)

type Manager

type Manager[T any] interface {
	Generate() (id, answer string, result T)
	Verify(id, value string, clear bool) bool

	common.Init[Manager[T]]
}

func NewB64

func NewB64(opts ...common.Option[b64Manager]) Manager[string]

Jump to

Keyboard shortcuts

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