Versions in this module Expand all Collapse all v0 v0.0.6 Apr 28, 2023 Changes in this version + type Turnstile struct + func (t *Turnstile) IsAllowedAction(name string) bool + func (t *Turnstile) VerifyHumanityToken(ctx context.Context, clientResponseToken string, clientIPAddress string) (userData string, err error) v0.0.5 Apr 27, 2023 Changes in this version + func New(withOptions ...Option) (oakbotswat.Verifier, error) + func NewGate(withOptions ...GateOption) (oakhttp.Encoder, error) + type GateOption func(*gateOptions) error + func WithDefaultSiteKey() GateOption + func WithSiteAction(action string) GateOption + func WithSiteKey(key string) GateOption + func WithSiteKeyFromEnvironment(variableName string) GateOption + func WithTemplateOptions(options ...oakbotswat.TemplateOption) GateOption + type Option func(*options) error + func WithAllowedActions(actions ...string) Option + func WithDefaultEndpoint() Option + func WithDefaultHostname() Option + func WithDefaultOptions() Option + func WithDefaultSecretKey() Option + func WithEndpoint(URL string) Option + func WithHTTPClient(client *http.Client) Option + func WithHostname(name string) Option + func WithHostnameFromEnvironment(variableName string) Option + func WithSecretKey(key string) Option + func WithSecretKeyFromEnvironment(variableName string) Option + type Request struct + RemoteIP string + Response string + Secret string + type Response struct + Action string + CData string + ChallengeTime string + ErrorCodes []string + Hostname string + Success bool + func (r *Response) Time() (time.Time, error) + func (r *Response) Validate() error Other modules containing this package github.com/dkotik/oakacs