Documentation
¶
Index ¶
- func NewGrep() common.Application
- func NewPost() common.Application
- func NewPublish() common.Application
- func NewReport() common.Application
- type Abstract
- func (a *Abstract) Close()
- func (a *Abstract) CloseEvents()
- func (a *Abstract) Done() <-chan bool
- func (a *Abstract) FireFinish(event *common.ApplicationEvent, abstractService interface{})
- func (a *Abstract) FireInit(event *common.ApplicationEvent, abstractService interface{})
- func (a *Abstract) FireRun(event *common.ApplicationEvent, abstractService interface{})
- func (a *Abstract) GetConfigData() ([]byte, error, error)
- func (a *Abstract) Init(_ *common.ApplicationEvent, _ bool)
- func (a *Abstract) InitChannels(cBufSize int)
- func (a *Abstract) InitConfig()
- func (a *Abstract) IsValidConfigFilename(filename string) bool
- func (a *Abstract) OnEvent(f func(ev *common.ApplicationEvent))
- func (a *Abstract) Run()
- func (a *Abstract) RunWithArgs(args ...interface{})
- func (a *Abstract) SendEvents(ev *common.ApplicationEvent) bool
- func (a *Abstract) Services() []interface{}
- func (a *Abstract) SetConfigMeta(configFilename, configRemoteAddr, configUpdateDuration string)
- func (a *Abstract) SetEvents(events chan *common.ApplicationEvent)
- func (a *Abstract) Timeout() common.Timeout
- type ConfigMeta
- type FinishFireAction
- type FireAction
- type Grep
- type InitFireAction
- type Post
- type PostFireAction
- type PreFireAction
- type Publish
- type ReconfigureFireAction
- type Report
- type RunFireAction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Abstract ¶
type Abstract struct { CommonTimeout common.Timeout `yaml:"timeouts"` // contains filtered or unexported fields }
Abstract базовое приложение
func (*Abstract) FireFinish ¶
func (a *Abstract) FireFinish(event *common.ApplicationEvent, abstractService interface{})
FireFinish останавливает сервисы приложения
func (*Abstract) FireInit ¶
func (a *Abstract) FireInit(event *common.ApplicationEvent, abstractService interface{})
FireInit инициализирует сервисы
func (*Abstract) FireRun ¶
func (a *Abstract) FireRun(event *common.ApplicationEvent, abstractService interface{})
FireRun запускает сервисы приложения
func (*Abstract) Init ¶
func (a *Abstract) Init(_ *common.ApplicationEvent, _ bool)
Init инициализирует приложение
func (*Abstract) InitChannels ¶
InitChannels init channels
func (*Abstract) InitConfig ¶
func (a *Abstract) InitConfig()
func (*Abstract) IsValidConfigFilename ¶
IsValidConfigFilename проверяет валидность пути к файлу с настройками
func (*Abstract) OnEvent ¶
func (a *Abstract) OnEvent(f func(ev *common.ApplicationEvent))
func (*Abstract) RunWithArgs ¶
func (a *Abstract) RunWithArgs(args ...interface{})
RunWithArgs запускает приложение с аргументами
func (*Abstract) SendEvents ¶
func (a *Abstract) SendEvents(ev *common.ApplicationEvent) bool
func (*Abstract) Services ¶
func (a *Abstract) Services() []interface{}
Services возвращает сервисы, используемые приложением
func (*Abstract) SetConfigMeta ¶
func (*Abstract) SetEvents ¶
func (a *Abstract) SetEvents(events chan *common.ApplicationEvent)
SetEvents устанавливает канал событий приложения
type ConfigMeta ¶
type ConfigMeta struct {
// contains filtered or unexported fields
}
type FinishFireAction ¶
type FinishFireAction func(*Abstract, *common.ApplicationEvent, interface{})
func (FinishFireAction) Fire ¶
func (f FinishFireAction) Fire(app common.Application, event *common.ApplicationEvent, abstractService interface{})
func (FinishFireAction) PostFire ¶
func (f FinishFireAction) PostFire(app common.Application, event *common.ApplicationEvent)
type FireAction ¶
type FireAction interface {
Fire(common.Application, *common.ApplicationEvent, interface{})
}
type Grep ¶
type Grep struct {
Abstract
}
Grep приложение, ищущее логи по адресату или получателю
func (*Grep) FireRun ¶
func (g *Grep) FireRun(event *common.ApplicationEvent, abstractService interface{})
FireRun запускает сервисы приложения
func (*Grep) RunWithArgs ¶
func (g *Grep) RunWithArgs(args ...interface{})
RunWithArgs запускает приложение с аргументами
type InitFireAction ¶
type InitFireAction func(*Abstract, *common.ApplicationEvent, interface{})
func (InitFireAction) Fire ¶
func (i InitFireAction) Fire(app common.Application, event *common.ApplicationEvent, abstractService interface{})
func (InitFireAction) PostFire ¶
func (i InitFireAction) PostFire(app common.Application, event *common.ApplicationEvent)
func (InitFireAction) PreFire ¶
func (i InitFireAction) PreFire(app common.Application, event *common.ApplicationEvent)
type Post ¶
Post приложение, рассылающее письма
func (*Post) FireFinish ¶
func (p *Post) FireFinish(event *common.ApplicationEvent, abstractService interface{})
FireFinish останавливает сервисы приложения
func (*Post) FireRun ¶
func (p *Post) FireRun(event *common.ApplicationEvent, abstractService interface{})
FireRun запускает сервисы приложения
type PostFireAction ¶
type PostFireAction interface { FireAction PostFire(common.Application, *common.ApplicationEvent) }
type PreFireAction ¶
type PreFireAction interface { FireAction PreFire(common.Application, *common.ApplicationEvent) }
type Publish ¶
type Publish struct {
Abstract
}
Publish приложение, перекладывающее письма из очереди в очередь
func (*Publish) FireRun ¶
func (p *Publish) FireRun(event *common.ApplicationEvent, abstractService interface{})
FireRun запускает сервисы приложения
func (*Publish) RunWithArgs ¶
func (p *Publish) RunWithArgs(args ...interface{})
RunWithArgs запускает приложение с аргументами
type ReconfigureFireAction ¶
type ReconfigureFireAction func(*Abstract, *common.ApplicationEvent, interface{})
func (ReconfigureFireAction) Fire ¶
func (r ReconfigureFireAction) Fire(app common.Application, event *common.ApplicationEvent, abstractService interface{})
func (ReconfigureFireAction) PostFire ¶
func (r ReconfigureFireAction) PostFire(app common.Application, event *common.ApplicationEvent)
type Report ¶
type Report struct {
Abstract
}
приложение, анализирующее неотправленные сообщения
func (*Report) FireRun ¶
func (r *Report) FireRun(event *common.ApplicationEvent, abstractService interface{})
запускает сервисы приложения
type RunFireAction ¶
type RunFireAction func(*Abstract, *common.ApplicationEvent, interface{})
func (RunFireAction) Fire ¶
func (r RunFireAction) Fire(app common.Application, event *common.ApplicationEvent, abstractService interface{})