noop

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package noop implements a no-op email sender.

Use it in local development, tests, or disabled delivery paths where callers should exercise email wiring without sending messages. It intentionally has no external side effects.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sender

type Sender struct {
	ID string
}

Sender is a no-op email sender useful for tests or local development.

func New

func New() *Sender

New returns a Sender that always succeeds.

func (*Sender) Send

func (s *Sender) Send(ctx context.Context, _ email.Message) (string, error)

Send returns a static ID without sending anything.

Jump to

Keyboard shortcuts

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