testing

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Domain       = "example.com"
	FromAddress  = "noreply@example.com"
	LinkBaseUrl  = "https://example.com/login/magic"
	RedirectUrl  = "https://example.com/account"
	ValidEmail   = "test@example.com"
	InvalidEmail = "not-an-email"
	DefaultNonce = "00000000-0000-4000-8000-000000000000"
)

Variables

This section is empty.

Functions

func MustFromAddress

func MustFromAddress() *mail.Address

func MustParseUrl

func MustParseUrl(raw string) *url.URL

func NewSigner

func NewSigner() *altshiftCryptoEddsa.Method

Types

type FakeMailSender

type FakeMailSender struct {
	Err      error
	Messages []*message.Message
	// contains filtered or unexported fields
}

func (*FakeMailSender) Last

func (f *FakeMailSender) Last() *message.Message

func (*FakeMailSender) SendMessage

func (f *FakeMailSender) SendMessage(_ context.Context, msg *message.Message) error

Jump to

Keyboard shortcuts

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