mrnotifier

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewComponentSender

func NewComponentSender(
	client mrstorage.DBConnManager,
	noticeTable mrsql.DBTableInfo,
	queueTable mrsql.DBTableInfo,
	eventEmitter mrsender.EventEmitter,
	opts ...produce.Option,
) *produce.NoticeSender

NewComponentSender - создаёт отправителя сообщений получателям.

func NewComponentService

func NewComponentService(
	client mrstorage.DBConnManager,
	mailerAPI mrnotifier.MailerAPI,
	eventEmitter mrsender.EventEmitter,
	errorHandler mrcore.ErrorHandler,
	noticeTable mrsql.DBTableInfo,
	queueTable mrsql.DBTableInfo,
	templateTableName string,
	templateVarName string,
	opts ...ServiceOption,
) (mrrun.Process, []mrworker.Task)

NewComponentService - создаёт сервис для обработки уведомлений и связанных с ним задачи.

Types

type ServiceOption

type ServiceOption func(o *serviceOptions)

ServiceOption - настройка объекта ComponentService.

func WithChangeLimit

func WithChangeLimit(value uint32) ServiceOption

WithChangeLimit - устанавливает опцию changeLimit для ComponentService.

func WithChangeRetryDelayed

func WithChangeRetryDelayed(value time.Duration) ServiceOption

WithChangeRetryDelayed - устанавливает опцию changeRetryDelayed для ComponentService.

func WithChangeRetryTimeout

func WithChangeRetryTimeout(value time.Duration) ServiceOption

WithChangeRetryTimeout - устанавливает опцию changeRetryTimeout для ComponentService.

func WithCleanLimit

func WithCleanLimit(value uint32) ServiceOption

WithCleanLimit - устанавливает опцию cleanLimit для ComponentService.

func WithDefaultLang

func WithDefaultLang(value string) ServiceOption

WithDefaultLang - устанавливает опцию defaultLang для ComponentService.

func WithSendProcessorOpts

func WithSendProcessorOpts(value ...consume.Option) ServiceOption

WithSendProcessorOpts - устанавливает опцию sendProcessor для ComponentService.

func WithTaskChangeFromToRetryOpts

func WithTaskChangeFromToRetryOpts(value ...task.Option) ServiceOption

WithTaskChangeFromToRetryOpts - устанавливает опцию taskChangeFromToRetry для ComponentService.

func WithTaskCleanNoticesOpts

func WithTaskCleanNoticesOpts(value ...task.Option) ServiceOption

WithTaskCleanNoticesOpts - устанавливает опцию taskCleanNotices для ComponentService.

Jump to

Keyboard shortcuts

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