memory

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package memory supplies a bounded, opt-in email recorder. It retains private message content in process memory and is intended for tests and development.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

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

func New

func New(capacity int) (*Driver, error)

func (*Driver) Close

func (d *Driver) Close()

func (*Driver) Format

func (*Driver) Format(s fmt.State, _ rune)

func (*Driver) Messages

func (d *Driver) Messages() []email.Outbound

func (*Driver) Reset

func (d *Driver) Reset()

func (*Driver) Send

func (d *Driver) Send(ctx context.Context, out email.Outbound) (email.Receipt, error)

Jump to

Keyboard shortcuts

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