console

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package console provides an email client that logs email events to stdout. This is the default provider when no email configuration is set.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client logs email events instead of sending them

func NewClient

func NewClient(logger *slog.Logger, publicURL string) *Client

NewClient creates a new console email client

func (*Client) Close

func (c *Client) Close()

Close is a no-op for the console client

func (*Client) SendPasswordResetEmail

func (c *Client) SendPasswordResetEmail(ctx context.Context, emailAddress, token string) error

SendPasswordResetEmail logs the password reset token to stdout

func (*Client) SendVerificationEmail

func (c *Client) SendVerificationEmail(ctx context.Context, emailAddress, token string) error

SendVerificationEmail logs the verification token to stdout

Jump to

Keyboard shortcuts

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