email_content

package
v0.2.13 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2025 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// queue group
	QUEUE_GROUP = "email-content-service"

	// consumer config
	CONSUMER_NAME         = "email-content-consumer"
	ACK_WAIT              = 30 * time.Second
	MAX_DELIVERY_ATTEMPTS = 5
	MAX_ACK_PENDING       = 1000
	FETCH_BATCH_SIZE      = 50
	MAX_FETCH_WAIT        = 500 * time.Millisecond
	ERR_BACKOFF           = 100 * time.Millisecond
)
View Source
const REQUEST_TIMEOUT = 60 * time.Second

Variables

View Source
var SUBSCRIBED_SUBJECT = enum.EventEmailInboundStored.String()

Functions

func NewEmailContentService

func NewEmailContentService(
	natsConn *nats_internal.NATSConnections,
	repositories *repository.Repositories,
	emlStorage interfaces.StorageService,
) interfaces.EmailProcessor

Types

type EmailContentService

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

func (*EmailContentService) Close

func (s *EmailContentService) Close() error

Close gracefully shuts down the service

func (*EmailContentService) Start

func (s *EmailContentService) Start(ctx context.Context) error

Start begins listening for raw email events and processing them

Jump to

Keyboard shortcuts

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