service

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2026 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmailService

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

EmailService handles PostmarkApp email operations

func NewEmailService

func NewEmailService(repo repository.PostmarkRepository, queueService *service.QueueService, logger *zap.Logger) *EmailService

NewEmailService creates a new email service

func (*EmailService) SendBatchEmail

func (s *EmailService) SendBatchEmail(ctx context.Context, serverID int, requests models.BatchEmailRequest) (models.BatchEmailResponse, error)

SendBatchEmail sends multiple emails

func (*EmailService) SendEmail

func (s *EmailService) SendEmail(ctx context.Context, serverID int, req *models.EmailRequest) (*models.EmailResponse, error)

SendEmail sends a single email

Jump to

Keyboard shortcuts

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