mrmailer

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: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewComponentSender

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

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

func NewComponentService

func NewComponentService(
	client mrstorage.DBConnManager,
	eventEmitter mrsender.EventEmitter,
	errorHandler mrcore.ErrorHandler,
	messageTable mrsql.DBTableInfo,
	queueTable mrsql.DBTableInfo,
	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 WithSendHandlerOpts

func WithSendHandlerOpts(value ...handle.Option) ServiceOption

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

func WithSendProcessorOpts

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

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

func WithTaskChangeFromToRetryOpts

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

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

func WithTaskCleanMessagesOpts

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

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

Jump to

Keyboard shortcuts

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