email

package
v0.0.0-...-bd48299 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Email

type Email struct{}

Email is the struct to use to implement all of the Emailer interfaces

func New

func New() *Email

New makes a new Email struct which implements all of the "Emailer" methods

func (*Email) SendResetPWEmail

func (e *Email) SendResetPWEmail(resetPWInfo *ResetPWInfo) (bool, error)

SendResetPWEmail sends an email to a user allowing them to reset their password

type Emailer

type Emailer interface {
	PasswordEmailer
}

Emailer combines all of the various aspecs of our email layer into one

type PasswordEmailer

type PasswordEmailer interface {
	SendResetPWEmail(resetPWInfo *ResetPWInfo) (bool, error)
}

PasswordEmailer describes all of the methods used for sending emails related to a user's password

type ResetPWInfo

type ResetPWInfo struct {
	UserEmail string `json:"userEmail"`
	ResetURL  string `json:"resetUrl"`
}

ResetPWInfo is a convenience data structure for holding all relevant information for resetting a user's password

Jump to

Keyboard shortcuts

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