mailer

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SubjectRegister       string = "Ya tenés tu cuenta de OMAlbum!"
	SubjectPasswordChange string = "OMAlbum - Cambio de contraseña"
	From                  string = "notificaciones.omalbum@gmail.com"

	RegisterTemplate       template = "RegisterTemplate"
	ChangePasswordTemplate template = "ChangePasswordTemplate"

	SubjectPasswordChangeContentSample string = `` /* 149-byte string literal not displayed */
	SubjectRegistrationContentSample   string = `Hola {{name}},\n te damos la bienvenida a OMAlbum`
)

Variables

View Source
var AppFs = afero.NewMemMapFs()

Functions

This section is empty.

Types

type Mailer

type Mailer interface {
	SendSuccessfulRegistration(email, name string)
	SendPasswordChange(email, name string, newPassword string)
}

func New

func New(restClient sendgrid.RestClient, templateLoader TemplateLoader) Mailer

func NewMock

func NewMock() Mailer

type RegistrationJob

type RegistrationJob interface {
	Run()
}

func NewRegistrationJob

func NewRegistrationJob(mailer Mailer, email, name string) RegistrationJob

func NewResetPasswordJob

func NewResetPasswordJob(mailer Mailer, email, userName string, newPassword string) RegistrationJob

type ResetPasswordJob

type ResetPasswordJob interface {
	Run()
}

type TemplateLoader

type TemplateLoader interface {
	// contains filtered or unexported methods
}

func NewTemplateLoader

func NewTemplateLoader(fs afero.Fs) TemplateLoader

Jump to

Keyboard shortcuts

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