mock

package
v2.9.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTransport

func NewTransport() 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 {
	SendMessages []string
}

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