mailer

package
v1.33.1 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	TemplatesDir string
}

func Flags

func Flags(fs *flag.FlagSet, prefix string) *Config

type Service added in v1.32.4

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

func New

func New(config *Config, mjmlService mjml.Service, senderService sender, meterProvider metric.MeterProvider, tracerProvider trace.TracerProvider) Service

func (Service) AmqpHandler added in v1.32.4

func (s Service) AmqpHandler(ctx context.Context, message amqp.Delivery) (err error)

func (Service) Enabled added in v1.32.4

func (s Service) Enabled() bool

func (Service) GetFixture added in v1.32.4

func (s Service) GetFixture(name, fixture string) (map[string]any, error)

func (Service) ListFixtures added in v1.32.4

func (s Service) ListFixtures(name string) ([]string, error)

func (Service) ListTemplates added in v1.32.4

func (s Service) ListTemplates() []string

func (Service) Render added in v1.32.4

func (s Service) Render(ctx context.Context, mailRequest model.MailRequest) (io.Reader, error)

func (Service) Send added in v1.32.4

func (s Service) Send(ctx context.Context, mail model.Mail) (err error)

Jump to

Keyboard shortcuts

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