guardian

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: 3 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 {
	// хосты, на которую блокируется отправка писем
	Excludes []string `yaml:"exclude"`
}

type Guardian

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

защитник, блокирует отправку на указанные почтовые сервисы

type Service

type Service struct {
	// количество горутин блокирующий отправку писем к почтовым сервисам
	GuardiansCount 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