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
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
Click to show internal directories.
Click to hide internal directories.