Documentation ¶
Index ¶
- type ImplMail
- func (m *ImplMail) GenerateEmailTemplate(name string, templateName string) string
- func (m *ImplMail) SendEmail(ctx context.Context, subject, text string, body *string, to ...string) (string, string, error)
- func (m *ImplMail) SendInBlue(ctx context.Context, subject, text string, to ...string) (string, string, error)
- func (m *ImplMail) SendMailgun(ctx context.Context, subject, text string, body *string, to ...string) (string, string, error)
- func (m *ImplMail) SimpleEmail(ctx context.Context, subject, text string, body *string, to ...string) (string, error)
- func (m *ImplMail) UpdateMailgunDeliveryStatus(ctx context.Context, payload *dto.MailgunEvent) (*dto.OutgoingEmailsLog, error)
- type UsecaseMail
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImplMail ¶
type ImplMail struct {
// contains filtered or unexported fields
}
ImplMail is the mail service implementation
func NewMail ¶
func NewMail(infrastructure infrastructure.Interactor) *ImplMail
NewMail initializes a mail service instance
func (*ImplMail) GenerateEmailTemplate ¶
GenerateEmailTemplate generates templates for email
func (*ImplMail) SendEmail ¶
func (m *ImplMail) SendEmail( ctx context.Context, subject, text string, body *string, to ...string, ) (string, string, error)
SendEmail sends email using mailgun service
func (*ImplMail) SendInBlue ¶
func (m *ImplMail) SendInBlue( ctx context.Context, subject, text string, to ...string, ) (string, string, error)
SendInBlue sends email using sendinblue service
func (*ImplMail) SendMailgun ¶
func (m *ImplMail) SendMailgun( ctx context.Context, subject, text string, body *string, to ...string, ) (string, string, error)
SendMailgun sends email using mailgun service
func (*ImplMail) SimpleEmail ¶
func (m *ImplMail) SimpleEmail( ctx context.Context, subject, text string, body *string, to ...string, ) (string, error)
SimpleEmail sends email using mailgun service
func (*ImplMail) UpdateMailgunDeliveryStatus ¶
func (m *ImplMail) UpdateMailgunDeliveryStatus( ctx context.Context, payload *dto.MailgunEvent, ) (*dto.OutgoingEmailsLog, error)
UpdateMailgunDeliveryStatus updates mailgun delivery status
type UsecaseMail ¶
type UsecaseMail interface { SendInBlue( ctx context.Context, subject, text string, to ...string, ) (string, string, error) SendMailgun( ctx context.Context, subject, text string, body *string, to ...string, ) (string, string, error) SendEmail( ctx context.Context, subject, text string, body *string, to ...string, ) (string, string, error) SimpleEmail( ctx context.Context, subject, text string, body *string, to ...string, ) (string, error) UpdateMailgunDeliveryStatus( ctx context.Context, payload *dto.MailgunEvent, ) (*dto.OutgoingEmailsLog, error) GenerateEmailTemplate( name string, templateName string, ) string }
UsecaseMail defines mail service usecases interface
Click to show internal directories.
Click to hide internal directories.