worker

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2016 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package worker contains the functionality for the background worker process.

Index

Constants

This section is empty.

Variables

Logger is the logger for the worker

Functions

func SendTestEmail

func SendTestEmail(s *models.SendTestEmailRequest) error

Types

type Worker

type Worker struct {
	Queue chan *models.Campaign
}

Worker is the background worker that handles watching for new campaigns and sending emails appropriately.

func New

func New() *Worker

New creates a new worker object to handle the creation of campaigns

func (*Worker) Start

func (w *Worker) Start()

Start launches the worker to monitor the database for any jobs. If a job is found, it launches the job

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL