Versions in this module Expand all Collapse all v1 v1.0.0 Jul 26, 2026 Changes in this version + var ErrAPI = &Error + var ErrInvalidKey = &Error + var ErrNetwork = &Error + var ErrNoThreads = &Error + var ErrProxy = &Error + var ErrThreadLimit = &Error + var ErrTimeout = &Error + var ErrUnsolvable = &Error + var ErrValidation = &Error + type CallOption func(*callOptions) + func WithAPIServer(apiServer string) CallOption + func WithAction(action string) CallOption + func WithCallProxy(proxy, proxytype string) CallOption + func WithCaseSensitive(caseSensitive int) CallOption + func WithCookies(cookies string) CallOption + func WithEnterprise() CallOption + func WithInstructions(instructions string) CallOption + func WithInvisible() CallOption + func WithLang(lang string) CallOption + func WithMaxLen(maxLen int) CallOption + func WithMinLen(minLen int) CallOption + func WithMinScore(score float64) CallOption + func WithNumeric(numeric int) CallOption + func WithPhrase(phrase int) CallOption + func WithUserAgent(userAgent string) CallOption + func WithVersion(version string) CallOption + type Client struct + func New(ctx context.Context, apiKey string, opts ...Option) (*Client, error) + func (c *Client) BLS(ctx context.Context, images []any, instructions string, opts ...CallOption) (SolveResult, error) + func (c *Client) Captchafox(ctx context.Context, sitekey, url string, opts ...CallOption) (SolveResult, error) + func (c *Client) Close() + func (c *Client) CloudflareChallenge(ctx context.Context, url string, opts ...CallOption) (SolveResult, error) + func (c *Client) FriendlyCaptcha(ctx context.Context, sitekey, url string, opts ...CallOption) (SolveResult, error) + func (c *Client) Geetest(ctx context.Context, gt, challenge, url string, opts ...CallOption) (SolveResult, error) + func (c *Client) GetResult(ctx context.Context, captchaType, taskID string) (SolveResult, error) + func (c *Client) Grid(ctx context.Context, image any, instructions, gridSize string, ...) (SolveResult, error) + func (c *Client) Lemin(ctx context.Context, captchaID, divID, url string, opts ...CallOption) (SolveResult, error) + func (c *Client) Normal(ctx context.Context, image any, opts ...CallOption) (SolveResult, error) + func (c *Client) RecaptchaV2(ctx context.Context, sitekey, url string, opts ...CallOption) (SolveResult, error) + func (c *Client) RecaptchaV3(ctx context.Context, sitekey, url string, opts ...CallOption) (SolveResult, error) + func (c *Client) Send(ctx context.Context, captchaType string, params map[string]any) (string, error) + func (c *Client) ThreadsInfo(ctx context.Context) (ThreadUsage, error) + func (c *Client) Turnstile(ctx context.Context, sitekey, url string, opts ...CallOption) (SolveResult, error) + type Error struct + Err error + Kind ErrorKind + Message string + func (e *Error) Error() string + func (e *Error) Is(target error) bool + func (e *Error) Unwrap() error + type ErrorKind int + const KindAPI + const KindInvalidKey + const KindNetwork + const KindNoThreads + const KindProxy + const KindThreadLimit + const KindTimeout + const KindUnsolvable + const KindValidation + func (k ErrorKind) String() string + type Option func(*config) + func WithAutoRetry(autoRetry bool) Option + func WithBaseURL(baseURL string) Option + func WithHTTPClient(client *http.Client) Option + func WithMaxPollSeconds(seconds float64) Option + func WithMaxRetries(maxRetries int) Option + func WithProxy(proxy, proxytype string) Option + func WithThreadBusyTimeout(seconds float64) Option + type SolveResult struct + Raw map[string]any + RawText string + Solution any + TaskID string + UserAgent string + func (r SolveResult) String() string + type ThreadUsage struct + Threads int + WorkingThreads int + type Transport interface + CloseIdleConnections func() + RequestRaw func(ctx context.Context, method, rawURL string, data *orderedParams) UniformResponse + type UniformResponse struct + Body map[string]any + RawText string + StatusCode int + TransportErrorMessage string + TransportErrorType string