Documentation
¶
Index ¶
- type Config
- type Service
- func (s Service) AmqpHandler(ctx context.Context, message amqp.Delivery) (err error)
- func (s Service) Enabled() bool
- func (s Service) GetFixture(name, fixture string) (map[string]any, error)
- func (s Service) ListFixtures(name string) ([]string, error)
- func (s Service) ListTemplates() []string
- func (s Service) Render(ctx context.Context, mailRequest model.MailRequest) (io.Reader, error)
- func (s Service) Send(ctx context.Context, mail model.Mail) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 (Service) GetFixture ¶ added in v1.32.4
func (Service) ListFixtures ¶ added in v1.32.4
func (Service) ListTemplates ¶ added in v1.32.4
Click to show internal directories.
Click to hide internal directories.