Versions in this module Expand all Collapse all v0 v0.1.0 Oct 15, 2026 Changes in this version + const DefaultMaxResponseBytes + const DefaultTimeout + const MaxRequestBytes + const MaxResponseBytesLimit + var ErrForbidden = errors.New("batchdata: forbidden") + var ErrInvalidConfig = errors.New("batchdata: invalid configuration") + var ErrInvalidRequest = errors.New("batchdata: invalid request") + var ErrMalformedResponse = errors.New("batchdata: malformed response") + var ErrRateLimited = errors.New("batchdata: rate limited") + var ErrRejected = errors.New("batchdata: rejected by provider") + var ErrUnauthorized = errors.New("batchdata: unauthorized") + type Client struct + func NewClient(apiKey string, opts ...Option) (*Client, error) + func (c Client) GoString() string + func (c Client) String() string + type Error struct + HasRetryAfter bool + Kind Kind + ProviderCode int + RetryAfter time.Duration + StatusCode int + func (e *Error) Error() string + func (e *Error) GoString() string + func (e *Error) Is(target error) bool + func (e *Error) ProviderMessage() string + func (e *Error) Unwrap() error + func (e *Error) Warnings() []Warning + type Kind string + const KindCanceled + const KindDeadlineExceeded + const KindMalformedResponse + const KindRejected + const KindResponseTooLarge + const KindTimeout + const KindTransport + type Option func(*config) + func WithHTTPClient(hc *http.Client) Option + func WithMaxResponseBytes(n int64) Option + func WithTestEndpoint(baseURL string) Option + func WithTimeout(d time.Duration) Option + func WithUserAgent(ua string) Option + type ValidationError struct + Err error + Field string + Reason string + func (e *ValidationError) Error() string + func (e *ValidationError) Unwrap() error + type Warning struct + Code WarningCode + Message string + type WarningCode string + const WarningDatasetNotAllowed + const WarningDeprecatedField + const WarningRateLimitApproaching