email

package
v0.0.0-...-5346f80 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sender

type Sender interface {
	SendInvitationEmail(req *record.Invitation) error
	SendEmailConfirmation(conf *record.EmailConfirmation) error
	SendEmailChanged(user *record.User, oldEmail string) error
	SendPasswordReset(reset *record.PasswordReset, token string) error
	SendPasswordChanged(user *record.User) error
}

Sender represents interface of email sender

func NewSender

func NewSender(ctx context.Context, cfg *config.Config, asset *static.EmailAsset) Sender

NewSender creates new sender

Jump to

Keyboard shortcuts

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