recaptcha

package
v0.0.0-...-4515e61 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2019 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Response

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

Response is the response of the recaptcha verification

type Verifier

type Verifier struct {
	Secret string
}

Verifier for recaptcha requests

func (*Verifier) Verify

func (v *Verifier) Verify(response, remoteIP string) (*Response, error)

Verify a given recaptcha request

Jump to

Keyboard shortcuts

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