domain

package
v0.0.0-...-2950954 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2023 License: MIT Imports: 4 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 {
	Sender    string `json:"sender" validate:"required,email,min=3,max=100"`
	Recipient string `json:"recipient" validate:"required,email,min=3,max=100"`
	Subject   string `json:"subject" validate:"required,min=3,max=100"`
	Body      string `json:"body" validate:"required,min=3,max=1000"`
	MIMEType  string `json:"mimeType"`
}

type Service

type Service interface {
	SendMail(ctx context.Context, mail Mail) error
	Ping(ctx context.Context) error
}

func NewService

func NewService(
	addr string,
	password string,
	from string,
	port string,
	validator validator,
	logger *logging.Logger,
) Service

Jump to

Keyboard shortcuts

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