Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrFailedSendEmail = errors.New("failed to send email")
Functions ¶
This section is empty.
Types ¶
type Mock ¶
type Mock struct{}
func (*Mock) SendConfirm ¶
SendConfirm for new user or resend request
func (*Mock) SendResetPassword ¶
SendResetPassword if a user forget his
type Production ¶
Service to send email using sendgrid provider
func NewProduction ¶
func NewProduction(secret, baseURL string, templateBox *rice.Box) *Production
func (*Production) SendConfirm ¶
func (p *Production) SendConfirm(to, firstName, lastName, token string) error
SendConfirm for new user or resend request
func (*Production) SendResetPassword ¶
func (p *Production) SendResetPassword(to, firstName, lastName, token string) error
SendResetPassword if a user forget his
Click to show internal directories.
Click to hide internal directories.