email

package
v0.6.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2022 License: MPL-2.0 Imports: 6 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL