guardian

package
v0.0.0-...-99e48b3 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2020 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Inst

func Inst() common.SendingService

Inst создает новый сервис блокировок

Types

type Guardian

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

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

type Service

type Service struct {
	// хосты, на которые блокируется отправка писем
	Hostnames []string `yaml:"exclude"`

	// количество горутин блокирующий отправку писем к почтовым сервисам
	GuardiansCount int `yaml:"workers"`
	// contains filtered or unexported fields
}

Service сервис, блокирующий отправку писем

func (*Service) Events

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

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

func (*Service) OnFinish

func (s *Service) OnFinish()

OnFinish завершает работу сервиса соединений

func (*Service) OnInit

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

OnInit инициализирует сервис блокировок

func (*Service) OnRun

func (s *Service) OnRun()

OnRun запускает горутины

Jump to

Keyboard shortcuts

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