Versions in this module Expand all Collapse all v0 v0.1.0 Feb 21, 2026 Changes in this version + const StateAcceptAll + const StateEmailInvalid + const StateOK + const SubStateEmailOK + const SubStateFailedSMTP + const SubStateIsDisposable + const SubStateIsRole + const SubStateUnknownError + var ErrAPI = errors.New("API error") + var ErrAuthentication = errors.New("authentication failed") + var ErrRateLimit = errors.New("rate limit exceeded") + type APIError struct + Err error + Message string + StatusCode int + func (e *APIError) Error() string + func (e *APIError) Unwrap() error + type Account struct + Account AccountInfo + Email string + IsAdminRole bool + Name string + TimeZone string + UUID string + type AccountInfo struct + Name string + PaymentPlan string + type Client struct + func NewClient(apiKey string, opts ...Option) *Client + func (c *Client) Account(ctx context.Context) (*Account, error) + func (c *Client) Validate(ctx context.Context, email string) (*Result, error) + type Option func(*Client) + func WithBaseURL(url string) Option + func WithHTTPClient(hc *http.Client) Option + func WithMaxRetries(n int) Option + func WithTimeout(d time.Duration) Option + type Result struct + Canonical string + Domain string + Email string + FirstName *string + LastName *string + MxRecord *string + State string + SubState string + Suggestion *string + VerifiedAt string + func (r *Result) IsAcceptAll() bool + func (r *Result) IsDisposable() bool + func (r *Result) IsInvalid() bool + func (r *Result) IsRole() bool + func (r *Result) IsValid() bool