recaptcha

package
v0.0.0-...-a4f8eeb Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrReCAPTCHANotInit = tracerr.New("reCAPTCHA not init")
)

Functions

func Init

func Init()

Init init new skynet reCAPTCHA instance.

Types

type ReCAPTCHAInstance

type ReCAPTCHAInstance struct {
	recaptcha.ReCAPTCHA
	// contains filtered or unexported fields
}
var ReCAPTCHA *ReCAPTCHAInstance

func Instance

func Instance(secret string, cnmirror bool, timeout int) (*ReCAPTCHAInstance, error)

func (*ReCAPTCHAInstance) VerifyCAPTCHA

func (r *ReCAPTCHAInstance) VerifyCAPTCHA(response string, ip string) error

VerifyCAPTCHA verify reCAPTCHA based on response and ip.

Jump to

Keyboard shortcuts

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