slide

package
v0.2.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	TypeBasic  = `basic`
	TypeRegion = `region`
)

Variables

This section is empty.

Functions

func NewSlide

func NewSlide(captchaType string, store captcha.Storer, options ...captcha.Option) (captcha.Driver, error)

Types

type Base

type Base struct {
	// contains filtered or unexported fields
}

func NewBase

func NewBase(store captcha.Storer) *Base

func (*Base) Storer

func (a *Base) Storer() captcha.Storer

func (*Base) Verify

func (a *Base) Verify(ctx context.Context, key string, response string) error

type Slide

type Slide struct {
	*Base
	// contains filtered or unexported fields
}

func (*Slide) Init added in v0.2.1

func (a *Slide) Init() error

func (*Slide) MakeData

func (a *Slide) MakeData(ctx context.Context) (*captcha.Data, error)

func (*Slide) SetOption

func (a *Slide) SetOption(key string, value interface{})

Jump to

Keyboard shortcuts

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