mailer

package
v0.0.0-...-6618439 Latest Latest
Warning

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

Go to latest
Published: May 25, 2016 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Inst

func Inst() common.SendingService

создает новый сервис отправки писем

Types

type Config

type Config struct {
	// путь до закрытого ключа
	PrivateKeyFilename string `yaml:"privateKey"`

	// селектор
	DkimSelector string `yaml:"dkimSelector"`
	// contains filtered or unexported fields
}

type Mailer

type Mailer struct {
	// contains filtered or unexported fields
}

отправитель письма

type Service

type Service struct {
	// количество отправителей
	MailersCount int `yaml:"workers"`

	Configs map[string]*Config `yaml:"postmans"`
}

сервис отправки писем

func (*Service) Events

func (s *Service) Events() chan *common.SendEvent

канал для приема событий отправки писем

func (*Service) OnFinish

func (s *Service) OnFinish()

завершает работу сервиса отправки писем

func (*Service) OnInit

func (s *Service) OnInit(event *common.ApplicationEvent)

инициализирует сервис отправки писем

func (*Service) OnRun

func (s *Service) OnRun()

запускает отправителей и прием сообщений из очереди

Jump to

Keyboard shortcuts

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