Documentation ¶
Index ¶
Constants ¶
View Source
const ( MissingInputSecret = "google reCAPTCHA: the secret parameter is missing. refresh the page and try again" InvalidInputSecret = "google reCAPTCHA: the secret parameter is invalid or malformed. refresh the page and try again" MissingInputResponse = "google reCAPTCHA: the response parameter is missing. refresh the page and try again" InvalidInputResponse = "google reCAPTCHA: the response parameter is invalid or malformed. refresh the page and try again" BadRequest = "google reCAPTCHA: the request is invalid or malformed. refresh the page and try again" TimeoutOrDuplicate = "" /* 128-byte string literal not displayed */ )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoogleRecaptcha ¶
type GoogleRecaptcha struct{}
func NewGoogleRecaptcha ¶
func NewGoogleRecaptcha() *GoogleRecaptcha
func (*GoogleRecaptcha) SiteVerify ¶
func (r *GoogleRecaptcha) SiteVerify(ctx context.Context, secret, token string) error
type SiteVerifyResponse ¶
Click to show internal directories.
Click to hide internal directories.