Versions in this module Expand all Collapse all v0 v0.0.2 Sep 19, 2022 Changes in this version + var DefaultFailureHandler = http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { ... }) + var HTMLForm = ... + var PostMaxMemory int64 = 32 << 20 + var ResponseContextKey interface{} = "hcaptcha" + func ParseForm(dataSiteKey, postActionRelativePath string) string + func RenderForm(w http.ResponseWriter, dataSiteKey, postActionRelativePath string) (int, error) + type Client struct + FailureHandler http.Handler + HTTPClient *http.Client + RemoteIP string + SiteKey string + func New(secret string) *Client + func (c *Client) Handler(next http.Handler) http.Handler + func (c *Client) HandlerFunc(next func(http.ResponseWriter, *http.Request)) http.HandlerFunc + func (c *Client) SiteVerify(r *http.Request) (response Response) + func (c *Client) VerifyToken(tkn string) (response Response) + type Response struct + ChallengeTS string + Credit bool + ErrorCodes []string + Hostname string + Success bool + func Get(r *http.Request) (Response, bool)