email

package
v0.7.9 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeEmail

func ChangeEmail(ctx context.Context, tx *queries.Queries, token models.ChangeEmailTokenData) error

func ConfirmNewEmail

func ConfirmNewEmail(ctx context.Context, tx *queries.Queries, user models.User, email string, mgr *Manager) error

func ConfirmOldEmail

func ConfirmOldEmail(ctx context.Context, tx *queries.Queries, user models.User, mgr *Manager) error

func SendNewUserEmail

func SendNewUserEmail(email string, activationKey uuid.UUID, mgr *Manager) error

func SendResetPasswordEmail

func SendResetPasswordEmail(user queries.User, activationKey uuid.UUID, mgr *Manager) error

Types

type Manager

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

func NewManager

func NewManager() *Manager

func (*Manager) Send

func (m *Manager) Send(email, subject, text, html string) error

Jump to

Keyboard shortcuts

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