Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithContext ¶ added in v1.19.0
WithContext sets the context.Context of a Client
Types ¶
type Client ¶ added in v1.19.0
type Client struct {
// contains filtered or unexported fields
}
Client is an hCaptcha client
type ClientOption ¶ added in v1.19.0
type ClientOption func(*Client)
ClientOption is a func to modify a new Client
type ErrorCode ¶ added in v1.19.0
type ErrorCode string
ErrorCode is any possible error from hCaptcha
const ( ErrMissingInputSecret ErrorCode = "missing-input-secret" ErrInvalidInputSecret ErrorCode = "invalid-input-secret" ErrMissingInputResponse ErrorCode = "missing-input-response" ErrInvalidInputResponse ErrorCode = "invalid-input-response" ErrBadRequest ErrorCode = "bad-request" ErrInvalidOrAlreadySeenResponse ErrorCode = "invalid-or-already-seen-response" ErrNotUsingDummyPasscode ErrorCode = "not-using-dummy-passcode" ErrSitekeySecretMismatch ErrorCode = "sitekey-secret-mismatch" )
type PostOptions ¶ added in v1.19.0
PostOptions are optional post form values
Click to show internal directories.
Click to hide internal directories.