mock

package
v2.12.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTransport

func NewTransport(logger *slog.Logger) model.EmailTransport

NewTransport creates new email mock transport, all it does just prints everything to console.

Types

type EmailService added in v2.3.0

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

func (*EmailService) Messages added in v2.3.0

func (es *EmailService) Messages() []string

func (*EmailService) SendHTML added in v2.3.0

func (es *EmailService) SendHTML(subject, html, recipient string) error

SendHTML returns nil error.

func (*EmailService) SendMessage added in v2.3.0

func (es *EmailService) SendMessage(subject, body, recipient string) error

SendMessage returns nil error.

Jump to

Keyboard shortcuts

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