Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmailAttachment ¶
type EmailAttachment struct { ContentType string `json:"content_type"` FileName string `json:"filename"` Contents []byte `json:"contents"` }
EmailAttachment is a JSON structure for an email attachment in encoded job.
type EmailJob ¶
type EmailJob struct { To string `json:"to"` Subject string `json:"subject"` Body string `json:"body"` Attachments []EmailAttachment `json:"attachments"` }
EmailJob - the JSON structure for db.Email Job field.
type MailSender ¶
MailSender - public interface for queuing emails to be sent.
type Mailer ¶
type Mailer struct {
// contains filtered or unexported fields
}
Mailer manages background services for sending email. New emails are queued in queued until the processing coroutine saves them to the database in a batch. The processing routine also searches for new emails to send Implements MailSender
Click to show internal directories.
Click to hide internal directories.