Versions in this module Expand all Collapse all v0 v0.1.0 Apr 3, 2026 Changes in this version + const DefaultEndpoint + const Version + func Bool(v bool) *bool + type APIError struct + Code int + Message string + func (e *APIError) Error() string + type Attachment struct + FileBody string + Name string + type CheckResponse struct + Date string + DateSent string + Status int + StatusChangeDate string + StatusName string + To string + type Client struct + func New(apiKey string, opts ...Option) *Client + func (c *Client) Check(ctx context.Context, transactionID string) (*CheckResponse, error) + func (c *Client) DeleteTransactionalWebhooks(ctx context.Context, eventName string) error + func (c *Client) GetLog(ctx context.Context, params *GetLogParams) ([]json.RawMessage, error) + func (c *Client) GetStat(ctx context.Context, params *GetStatParams) (json.RawMessage, error) + func (c *Client) GetTransactionalWebhooks(ctx context.Context, eventName string) (json.RawMessage, error) + func (c *Client) Send(ctx context.Context, msg *Message) (*SendResponse, error) + func (c *Client) SetTransactionalWebhooks(ctx context.Context, urls *WebhookURLs) error + type GetLogParams struct + CampaignID string + Emails []string + EventType string + From string + Limit int + Sort string + Start int + To string + type GetLogResponse struct + Entries []LogEntry + type GetStatParams struct + EndDate string + Period string + StartDate string + type InlineAttachment struct + Body string + CID string + Filename string + MIMEType string + type LogEntry struct + Date string + Email string + Event string + Subject string + TransactionID string + type Message struct + Attachments []Attachment + BCC string + CC string + DeliveryTime string + Domain string + FromEmail string + FromName string + HTML string + Headers map[string]string + IgnoreDeliveryPolicy *bool + Inline []InlineAttachment + MessageID string + NoTrackClicks *bool + NoTrackOpens *bool + PlainText string + Replace map[string]string + Subject string + TemplateData map[string]any + To string + func (m *Message) AttachFile(path string) error + func (m *Message) AttachInlineFile(path, cid string) error + type Option func(*Client) + func WithDebug(v bool) Option + func WithEndpoint(endpoint string) Option + func WithFromEmail(email string) Option + func WithFromName(name string) Option + func WithHTTPClient(hc *http.Client) Option + func WithIgnoreDeliveryPolicy(v bool) Option + func WithNoTrackClicks(v bool) Option + func WithNoTrackOpens(v bool) Option + type RawResponse struct + Body []byte + Data json.RawMessage + HTTPCode int + Msg ResponseMsg + type ResponseMsg struct + ErrCode int + Text string + Type string + type SendResponse struct + TransactionID string + type StatEntry struct + Bounced int + Clicked int + Date string + Delivered int + Opened int + Sent int + Spam int + Unsub int + type WebhookURLs struct + Click string + Confirm string + Hard string + Open string + Soft string + Spam string + Subscribe string + Unsub string