emaildev

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package emaildev is the log-only mail channel: every send writes an info log line instead of doing network IO (the default when no real channel is configured). No IO means no timeouts — the ctx-detachment contract the smtp/resend adapters impose is irrelevant here, and ctx is accepted only for interface parity with the other EmailSender implementations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sender

type Sender struct {
	Log *slog.Logger
}

func New

func New() *Sender

func (*Sender) Send

func (s *Sender) Send(_ context.Context, to, subject, body string) error

func (*Sender) SendEmailVerification

func (s *Sender) SendEmailVerification(_ context.Context, to, link string) error

func (*Sender) SendInvite

func (s *Sender) SendInvite(_ context.Context, to, workspaceName, invitationID string) error

func (*Sender) SendLoginCode

func (s *Sender) SendLoginCode(_ context.Context, to, code string) error

func (*Sender) SendPasswordReset

func (s *Sender) SendPasswordReset(_ context.Context, to, link string) error

Jump to

Keyboard shortcuts

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