Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEmailNotificationSender ¶
func NewEmailNotificationSender(smtpCfg *config.SMTPConfiguration) (notification.Sender, error)
Types ¶
type Email ¶
type Email struct {
// contains filtered or unexported fields
}
func (*Email) SendNotification ¶
func (e *Email) SendNotification(ctx context.Context, n *notification.Notification) error
type TemplateName ¶ added in v0.6.0
type TemplateName string
const ( TemplateEndpointUpdate TemplateName = "endpoint.update" TemplateOrganisationInvite TemplateName = "organisation.invite" TemplateResetPassword TemplateName = "reset.password" TemplateTwitterSource TemplateName = "twitter.source" )
func (TemplateName) String ¶ added in v0.6.0
func (t TemplateName) String() string
Click to show internal directories.
Click to hide internal directories.