Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is a test server that can act as a reCAPTCHA stand-in for unit tests.
func (*Server) VerifyEndpoint ¶
VerifyEndpoint returns the URL to use for verifying a token.
type Site ¶
type Site struct { PublicKey string // This is the public key. PrivateKey string // This is the private key. // contains filtered or unexported fields }
Site represents a reCAPTCHA site.
func (*Site) GenerateToken ¶
GenerateToken generates a new token for the given token data.
func (*Site) NewResponseToken ¶
NewResponseToken simulates generating a valid response token.
func (*Site) NewResponseTokenRemoteIP ¶
NewResponseTokenRemoteIP simulates generating a valid response token for the given remote IP address.
Click to show internal directories.
Click to hide internal directories.