mail

package
v0.0.0-...-aa13637 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2020 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MailChan chan *models.Mail

MailChan is a public channel that recieve mail from other modules

Functions

This section is empty.

Types

type Worker

type Worker struct {
	MailChannel chan *models.Mail
	WaitGroup   *sync.WaitGroup
	// contains filtered or unexported fields
}

Worker is a mail handler

func NewWorker

func NewWorker(config *models.MailConfig, task chan *models.Mail, wg *sync.WaitGroup) *Worker

NewWorker returns a Worker instance

func (*Worker) Start

func (w *Worker) Start()

Start starts a worker instance

func (*Worker) Stop

func (w *Worker) Stop()

Stop stops a worker instance

Jump to

Keyboard shortcuts

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