Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmailSender ¶
type EmailSender struct {
// contains filtered or unexported fields
}
func NewEmailConsumer ¶
func NewEmailConsumer(config *worker.Config, log log.Logger) *EmailSender
func NewEmailSender ¶
NewEmailSender returns a new instance of EmailWorker.
func (*EmailSender) ConsumeJobs ¶
func (ew *EmailSender) ConsumeJobs() error
func (*EmailSender) EnqueueMailJob ¶
func (ew *EmailSender) EnqueueMailJob(job *Job) error
func (*EmailSender) Shutdown ¶
func (ew *EmailSender) Shutdown() error
type MailTemplate ¶
MailTemplate is a set of templates for emails, specifically for the MIME type text/plain and text/html.
func NewMailTemplate ¶
func NewMailTemplate(textPath, htmlPath string) (*MailTemplate, error)
NewEmailTemplate returns a new instance of MailTemplate.
type MailTemplates ¶
type MailTemplates struct { PasswordReset *MailTemplate UserInvite *MailTemplate }
MailTemplates contain all the templates in memory required for enqueuing mail jobs.
func NewMailTemplates ¶
func NewMailTemplates() (*MailTemplates, error)
NewMailTemplates returns a new instance of MailTemplates.
Click to show internal directories.
Click to hide internal directories.