Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MailAttributes ¶
MailAttributes contains E-Mail attributes
type MailService ¶
type MailService interface {
SendNotification(attributes MailAttributes) error
}
Service forwards E-Mail to a set of receivers
type MockMailService ¶
type MockMailService struct {
SendMails []MailAttributes
}
mocks a mail service and allow to access the receive messages
func (*MockMailService) SendNotification ¶
func (service *MockMailService) SendNotification(attributes MailAttributes) error
type SendGridConfig ¶
SendGridConfig contain all attributes to initialize the SendGrid mail service
type SendGridService ¶
type SendGridService struct {
// contains filtered or unexported fields
}
SendGridService implements MailService
func NewSendGridService ¶
func NewSendGridService(config *SendGridConfig) *SendGridService
NewSendGridService creates a SendGridService using an already initializes service
func (*SendGridService) SendNotification ¶
func (service *SendGridService) SendNotification(attributes MailAttributes) error
Click to show internal directories.
Click to hide internal directories.