Versions in this module Expand all Collapse all v0 v0.1.0 Oct 17, 2026 Changes in this version + const DefaultBaseURL + type APIError struct + Response map[string]any + StatusCode int + func (e *APIError) Error() string + type Client struct + func NewClient(apiKey string, options ...Option) (*Client, error) + func (c *Client) Find(ctx context.Context, id string) (*Verification, error) + func (c *Client) Verify(ctx context.Context, email, idempotencyKey string) (*Verification, error) + type Option func(*Client) error + func WithBaseURL(raw string) Option + func WithHTTPClient(client *http.Client) Option + type Verification struct + Attempts int + Checks json.RawMessage + CompletedAt *time.Time + CreatedAt *time.Time + Email string + ID string + Raw json.RawMessage + Reason *string + State string + Status *string + func (v Verification) IsCompleted() bool + func (v Verification) IsDeliverable() bool + func (v Verification) IsFailed() bool + func (v Verification) IsPending() bool + func (v Verification) IsRisky() bool + func (v Verification) IsUndeliverable() bool + func (v Verification) IsUnknown() bool + type WebhookVerifier struct + func NewWebhookVerifier(secret string, tolerance ...time.Duration) *WebhookVerifier + func (w *WebhookVerifier) Verify(body []byte, headers http.Header) bool + func (w *WebhookVerifier) VerifyPayload(body []byte, timestamp, signature string) bool