Documentation ¶
Overview ¶
Package worker contains the functionality for the background worker process. It starts a background service that polls every minute for scheduled campaigns to be launched. If a campaign is found, it gathers the maillogs associated with the campaign and sends them to the mailer package to be processed.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Logger is the logger for the worker
Functions ¶
This section is empty.
Types ¶
type Worker ¶
type Worker struct{}
Worker is the background worker that handles watching for new campaigns and sending emails appropriately.
func (*Worker) LaunchCampaign ¶ added in v0.5.0
LaunchCampaign starts a campaign
func (*Worker) SendTestEmail ¶ added in v0.5.0
func (w *Worker) SendTestEmail(s *models.SendTestEmailRequest) error
SendTestEmail sends a test email
Click to show internal directories.
Click to hide internal directories.