notify

package
v0.0.0-...-8979337 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Notifier

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

Notifier sends email notifications via the Resend HTTP API.

func New

func New(apiKey, fromAddr string) *Notifier

New creates a Notifier. Returns nil if apiKey is empty. If fromAddr is empty, defaults to Resend's onboarding address.

func (*Notifier) Send

func (n *Notifier) Send(to, subject, body string) error

Send sends an email via Resend. Non-fatal errors are returned for logging.

Jump to

Keyboard shortcuts

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