Versions in this module Expand all Collapse all v0 v0.2.0 Nov 1, 2026 Changes in this version type TaskTimeoutError + Reason string v0.1.0 Oct 29, 2026 Changes in this version + const ComparatorExcludes + const ComparatorFindByRegex + const ComparatorIncludes + const ComparatorMatches + const FormatterHTML + const FormatterLink + const FormatterNumeric + const FormatterText + const RegexSourcePretty + const RegexSourceRaw + const StatusError + const StatusPending + const StatusSuccess + const StatusTimeout + const TargetBody + const TargetFrom + const TargetSubject + const Version + var ErrClosed = errors.New("mailman tasks client is closed") + type AuthError struct + func (e *AuthError) Unwrap() error + type Client struct + func New(apiKey string, opts ...Option) *Client + func (c *Client) Close() + func (c *Client) CreateTask(ctx context.Context, t MailTask) (string, error) + func (c *Client) Poll(ctx context.Context, group string) ([]TaskResult, error) + func (c *Client) Run(ctx context.Context, t MailTask) (TaskResult, error) + func (c *Client) Verify(ctx context.Context) error + func (c *Client) Wait(ctx context.Context, id string, opts ...WaitOption) (TaskResult, error) + type InvalidRequestError struct + func (e *InvalidRequestError) Unwrap() error + type MailElement struct + Formatter string + Name string + Penetrate bool + Regex string + RegexSource string + Selector string + Target string + type MailFilter struct + Comparator string + Optional bool + OrValues []string + RegexReplaceAll string + Target string + Value string + type MailTask struct + Email string + Group string + MailElements []MailElement + MailFilters []MailFilter + ReceivedAt int64 + TemplateID string + Timeout uint32 + func CodeTask(email, from, subjectIncludes string, length int) MailTask + func LinkTask(email, from, subjectIncludes string) MailTask + type MailmanError struct + Message string + RetryAfter time.Duration + Status int + func (e *MailmanError) Error() string + type NetworkError struct + Cause error + MayHaveBeenAccepted bool + func (e *NetworkError) Error() string + func (e *NetworkError) Unwrap() error + type Option func(*Client) + func WithBaseURL(base string) Option + func WithGroup(group string) Option + func WithHTTPClient(h *http.Client) Option + func WithUserAgent(ua string) Option + type PayloadTooLargeError struct + func (e *PayloadTooLargeError) Unwrap() error + type PendingLimitError struct + func (e *PendingLimitError) Unwrap() error + type RateLimitError struct + func (e *RateLimitError) Unwrap() error + type RequestTimeoutError struct + func (e *RequestTimeoutError) Unwrap() error + type ServerBusyError struct + func (e *ServerBusyError) Unwrap() error + type TaskFailedError struct + ErrorMessage string + ErrorStatus string + ID string + func (e *TaskFailedError) Error() string + type TaskResult struct + ID string + Results map[string]string + Status string + type TaskTimeoutError struct + ID string + func (e *TaskTimeoutError) Error() string + type TooManyTasksError struct + Limit int + func (e *TooManyTasksError) Error() string + type WaitOption func(*waitOptions) + func WithDeadline(deadline time.Time) WaitOption + func WithTimeout(timeout time.Duration) WaitOption + func WithWaitGroup(group string) WaitOption