Documentation
¶
Overview ¶
Package delivery sends rendered reports to recipients. Email (SMTP) is the only channel today; the Deliverer interface keeps file/webhook channels drop-in.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deliverer ¶
type Deliverer interface {
Deliver(ctx context.Context, tenant string, to []string, subject string, html, pdf []byte) error
}
Deliverer sends one tenant's rendered report to its recipients.
type SMTP ¶
type SMTP struct {
// contains filtered or unexported fields
}
SMTP delivers reports as email (HTML body + PDF attachment) via go-mail.
Click to show internal directories.
Click to hide internal directories.