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
Click to show internal directories.
Click to hide internal directories.