Documentation ¶
Index ¶
- type App
- func (a App) AmqpHandler(ctx context.Context, message amqp.Delivery) error
- func (a App) Enabled() bool
- func (a App) GetFixture(name, fixture string) (map[string]any, error)
- func (a App) ListFixtures(name string) ([]string, error)
- func (a App) ListTemplates() []string
- func (a App) Render(ctx context.Context, mailRequest model.MailRequest) (io.Reader, error)
- func (a App) Send(ctx context.Context, mail model.Mail) error
- type Config
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, tracer trace.Tracer) App
New creates new App from Config
func (App) AmqpHandler ¶ added in v1.26.8
AmqpHandler handler amqp message
func (App) GetFixture ¶
GetFixture for a template and a given name
func (App) ListFixtures ¶
ListFixtures for a given template names
Click to show internal directories.
Click to hide internal directories.