whcaptcha

package
v0.0.0-...-2e0c1f2 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidToken = errors.New("hcaptcha: invalid token")
)

Functions

func Installer

func Installer(opts ...Option) wext.Installer

Installer install component

func Validate

func Validate(c winter.Context, token string, altKeys ...string)

Validate validate hcaptcha

Types

type Option

type Option = func(opts *options)

Option option for installation

func WithRestyKey

func WithRestyKey(k ...string) Option

WithRestyKey set key for wresty extraction

func WithSecret

func WithSecret(u string) Option

WithSecret set secret of hcaptcha service

func WithSiteKey

func WithSiteKey(u string) Option

WithSiteKey set siteKey of hcpatcha service

Jump to

Keyboard shortcuts

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