mailer

package
v1.27.9 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2022 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

App of package

func New

func New(config Config, mjmlApp mjml.App, senderApp sender, prometheusRegisterer prometheus.Registerer) App

New creates new App from Config

func (App) AmqpHandler added in v1.26.8

func (a App) AmqpHandler(message amqp.Delivery) error

AmqpHandler handler amqp message

func (App) Enabled added in v1.22.2

func (a App) Enabled() bool

Enabled checks if requirements are met

func (App) GetFixture

func (a App) GetFixture(name, fixture string) (map[string]interface{}, error)

GetFixture for a template and a given name

func (App) ListFixtures

func (a App) ListFixtures(name string) ([]string, error)

ListFixtures for a given template names

func (App) ListTemplates

func (a App) ListTemplates() []string

ListTemplates availables to render

func (App) Render

func (a App) Render(ctx context.Context, mailRequest model.MailRequest) (io.Reader, error)

Render email

func (App) Send

func (a App) Send(ctx context.Context, mail model.Mail) error

Send email

type Config

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

Config of package

func Flags

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

Flags adds flags for configuring package

Jump to

Keyboard shortcuts

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