recaptcha

package
v0.0.0-...-14f5664 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RECAPTCHA_PRIVATE_KEY string
)

Functions

func VerifyCaptcha

func VerifyCaptcha(captchaResponse []byte) error

Types

type Captcha

type Captcha struct {
	Captcha string `json:"captcha"`
}

type RecaptchaResponse

type RecaptchaResponse struct {
	Success     bool      `json:"success"`
	ChallengeTS time.Time `json:"challenge_ts"`
	Hostname    string    `json:"hostname"`
	ErrorCodes  []string  `json:"error-codes"`
}

Jump to

Keyboard shortcuts

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