mailerrepo

package
v0.0.0-...-a9081ec Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package mailerrepo provides a repository to interact with the mailgun mailer

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	MailerClient *mailgun.MailgunImpl
}

Repository is data/repository implementation of service layer TokenRepository

func New

func New(mailerClient *mailgun.MailgunImpl) *Repository

New is a factory for initializing Token Repositories

func (*Repository) NewMessage

func (r *Repository) NewMessage(sender, subject, recipient string) *mailgun.Message

NewMessage will return a new message with mailgun client

func (*Repository) SendMail

func (r *Repository) SendMail(ctx context.Context, messages *mailgun.Message) (string, error)

SendMail will send an email with mailgun client

Jump to

Keyboard shortcuts

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