mail

package
v0.0.0-...-8a3840d Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mail

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

func New

func New(config config.Configuration, httpClient *http.Client, logger *slog.Logger) (*Mail, error)

func (*Mail) SendDiffEmail

func (m *Mail) SendDiffEmail(ctx context.Context, w watch.Watch, diffMethod, subject, body, text1, text2 string) error

func (*Mail) SendErrorEmail

func (m *Mail) SendErrorEmail(ctx context.Context, w watch.Watch, err error) error

func (*Mail) SendWatchError

func (m *Mail) SendWatchError(ctx context.Context, w watch.Watch, ret *watch.InvalidResponseError) error

Jump to

Keyboard shortcuts

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