settingshttp

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MailModeSMTP = "smtp"

	MailModeDev = "dev"
)

Variables

This section is empty.

Functions

func MountAdmin

func MountAdmin(mux *http.ServeMux, d AdminDeps)

Types

type AdminDeps

type AdminDeps struct {
	Store *settings.Store

	Guard func(http.Handler) http.Handler

	Mailer Mailer

	MailMode string

	Log *slog.Logger
}

type Mailer

type Mailer interface {
	Send(ctx context.Context, to, subject, body string) error
}

Jump to

Keyboard shortcuts

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