Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrMissingInputSecret when the secret parameter is missing. ErrMissingInputSecret = errors.New("missing-input-secret") // ErrInvalidInputSecret when the secret parameter is invalid or malformed. ErrInvalidInputSecret = errors.New("invalid-input-secret") // ErrMissingInputResponse when the response parameter is missing. ErrMissingInputResponse = errors.New("missing-input-response") // ErrInvalidInputResponse when the response parameter is invalid or malformed. ErrInvalidInputResponse = errors.New("invalid-input-response") // ErrBadRequest when the request is invalid or malformed. ErrBadRequest = errors.New("bad-request") // ErrUnsucceeded when response success value equals to false. ErrUnsucceeded = errors.New("unsucceeded status") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client struct to verify captcha.
type Option ¶
type Option func(*Client)
Option for initializer.
func SetHTTPClient ¶
SetHTTPClient sets httpClient. Used in tests for stubing.
func SetTimeout ¶
SetTimeout sets timeout for the http client.
Click to show internal directories.
Click to hide internal directories.