recaptcha

package
v0.0.0-...-bc1f52c Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Input

type Input struct {
	// Required. The shared key between your site and reCAPTCHA.
	Secret string `json:"secret"`
	// Required. The user response token provided by the reCAPTCHA client-side integration on your site.
	Response string `json:"response"`
	// Optional. The user's IP address.
	RemoteIP string `json:"remoteip"`
}

type Output

type Output struct {
	Success     bool      `json:"success"`
	ChallengeTs time.Time `json:"challenge_ts"`
	Hostname    string    `json:"hostname"`
	Error       []string  `json:"error-codes"`
	Score       float64   `json:"score"`
	Action      string    `json:"action"`
}

Jump to

Keyboard shortcuts

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