v1

package
v0.0.0-...-ca24b28 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeliveryJobProcessor

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

func (DeliveryJobProcessor) Process

func (p DeliveryJobProcessor) Process(job *gobble.Job, logger lager.Logger) error

type DeliveryJobProcessorConfig

type DeliveryJobProcessorConfig struct {
	DBTrace bool
	UAAHost string
	Sender  string
	Domain  string

	Packager    common.Packager
	MailClient  mailSender
	Database    db.DatabaseInterface
	TokenLoader tokenLoader
	UserLoader  userLoader

	KindsRepo              kindsFinder
	ReceiptsRepo           receiptsCreator
	UnsubscribesRepo       unsubscribesGetter
	GlobalUnsubscribesRepo globalUnsubscribesGetter
	MessageStatusUpdater   messageStatusUpdater
	DeliveryFailureHandler deliveryFailureHandler
}

type MessageStatusUpdater

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

func NewMessageStatusUpdater

func NewMessageStatusUpdater(messagesRepo MessageUpserter) MessageStatusUpdater

func (MessageStatusUpdater) Update

func (mu MessageStatusUpdater) Update(conn db.ConnectionInterface, messageID, messageStatus, campaignID string, logger lager.Logger)

type MessageUpserter

type MessageUpserter interface {
	Upsert(conn models.ConnectionInterface, message models.Message) (models.Message, error)
}

type TemplatesLoader

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

func NewTemplatesLoader

func NewTemplatesLoader(database db.DatabaseInterface, clientsRepo clientFinder, kindsRepo kindFinder, templatesRepo templateFinder) TemplatesLoader

func (TemplatesLoader) LoadTemplates

func (loader TemplatesLoader) LoadTemplates(clientID, kindID, templateID string) (common.Templates, error)

Jump to

Keyboard shortcuts

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