recaptcha

package
v0.0.0-...-c9f746a Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HTTPClient xhttp.Client
)

Functions

func Verify

func Verify(ctx context.Context, secret string, challengeResponseToken string) (float32, error)

Types

type ResponseData

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

Jump to

Keyboard shortcuts

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