email

package
v0.0.0-...-8bff5d1 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package email helps us to use the email as the tool to identify each user

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Emailer

type Emailer struct {
	// contains filtered or unexported fields
}

Emailer contains emails templates and the sender information.

func New

func New() Emailer

New returns a new emailer.

func (*Emailer) SendChangeConfirmation

func (e *Emailer) SendChangeConfirmation(id, username, email, newEmail, token string) error

SendChangeConfirmation sends a confirmation email to the user.

func (*Emailer) SendValidation

func (e *Emailer) SendValidation(ctx context.Context, username, email, token string) error

SendValidation sends a validation email to the user.

type Items

type Items struct {
	ID       string
	Name     string
	Email    string
	Token    string
	NewEmail string
}

Items is a struct that keeps the values passed to the templates.

Jump to

Keyboard shortcuts

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