email

package
v0.0.0-...-b9360c4 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSSESEmailer

type AWSSESEmailer struct {
	// contains filtered or unexported fields
}

func NewAWSSESEmailer

func NewAWSSESEmailer(sesc *ses.SES, source, domain string, override []*string) (e *AWSSESEmailer, err error)

func (*AWSSESEmailer) SendProjectInvitation

func (a *AWSSESEmailer) SendProjectInvitation(sender *data.User, invite *data.ProjectInvite) error

func (*AWSSESEmailer) SendRecoveryToken

func (a *AWSSESEmailer) SendRecoveryToken(person *data.User, recoveryToken *data.RecoveryToken) error

func (*AWSSESEmailer) SendValidationToken

func (a *AWSSESEmailer) SendValidationToken(person *data.User, validationToken *data.ValidationToken) error

type EmailTemplate

type EmailTemplate struct {
	Subject  *text.Template
	BodyText *text.Template
	BodyHTML *html.Template
}

func NewProjectInvitationEmailTemplate

func NewProjectInvitationEmailTemplate() (et *EmailTemplate, err error)

func NewRecoveryEmailTemplate

func NewRecoveryEmailTemplate() (et *EmailTemplate, err error)

func NewValidationEmailTemplate

func NewValidationEmailTemplate() (et *EmailTemplate, err error)

type EmailTemplates

type EmailTemplates struct {
	Validation        *EmailTemplate
	Recovery          *EmailTemplate
	ProjectInvitation *EmailTemplate
}

func NewEmailTemplates

func NewEmailTemplates() (e *EmailTemplates, err error)

type Emailer

type Emailer interface {
	SendValidationToken(person *data.User, validationToken *data.ValidationToken) error
	SendRecoveryToken(person *data.User, recoveryToken *data.RecoveryToken) error
	SendProjectInvitation(sender *data.User, invite *data.ProjectInvite) error
}

func NewNoopEmailer

func NewNoopEmailer(source, domain string, override []*string) (e Emailer, err error)

Jump to

Keyboard shortcuts

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