Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithContext ¶
WithContext sets the context.Context of a Client
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is an hCaptcha client
type ErrorCode ¶
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 ¶
PostOptions are optional post form values
Click to show internal directories.
Click to hide internal directories.