Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmailSender ¶
type EmailSender struct {
MailerSendServer *mailersend.Mailersend
SenderName string
SenderEmail string
}
func NewEmailSender ¶
func NewEmailSender(conf *common.Config) *EmailSender
func (*EmailSender) SendEmail ¶
func (e *EmailSender) SendEmail(to, subject, body string) (*mailersend.Response, error)
type EmailSenderInterface ¶
type EmailSenderInterface interface {
SendEmail(to, subject, body string) (*mailersend.Response, error)
}
type Worker ¶
type Worker struct {
EmailSender EmailSenderInterface
RabbitMQBroker rabbitmq.RabbitMQBrokerInterface
}
func NewWorker ¶
func NewWorker(emailSender *EmailSender, rmq *rabbitmq.RabbitMQBroker) *Worker
Click to show internal directories.
Click to hide internal directories.