Versions in this module Expand all Collapse all v0 v0.1.0 Jul 12, 2026 Changes in this version + var ErrUnauthorized = fmt.Errorf("zerodrop: invalid or missing API key") + func Bool(v bool) *bool + type Client struct + func New(opts ...ClientOption) *Client + func (c *Client) FetchLatest(ctx context.Context, inbox string, filter *Filter) (*Email, error) + func (c *Client) GenerateInbox() string + func (c *Client) WaitForLatest(ctx context.Context, inbox string, opts *Options) (*Email, error) + type ClientOption func(*Client) + func WithAPIKey(key string) ClientOption + func WithBaseURL(url string) ClientOption + func WithHTTPClient(h *http.Client) ClientOption + type Email struct + Body string + From string + ID string + MagicLink string + OTP string + RawBody string + ReceivedAt time.Time + Subject string + To string + type Filter struct + Body string + From string + HasMagicLink *bool + HasOTP *bool + Subject string + type NetworkError struct + Err error + func (e *NetworkError) Error() string + func (e *NetworkError) Unwrap() error + type Options struct + DisableSSE bool + Filter *Filter + PollInterval time.Duration + Timeout time.Duration + type TimeoutError struct + Inbox string + Timeout time.Duration + func (e *TimeoutError) Error() string