sendmail

package
v0.0.0-...-d9936ee Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UseCaseSet = wire.NewSet(NewUseCase)

Functions

This section is empty.

Types

type MailEventPublisher

type MailEventPublisher interface {
	Configure(...publisher.Option)
	Publish(context.Context, []byte, string) error
}

type UseCase

type UseCase interface {
	TestSendMail(ctx context.Context, host string, port int64, authProtocol, username, password, tlsType, fromName, fromAddress string,
		idleTimeout, maxConnections, retries, waitTimeout int64, to string) error
	SendMail(ctx context.Context, history *domain.History) error
}

func NewUseCase

func NewUseCase(
	redis redis.RedisEngine,
	serviceHistory history.UseCase,
	pub MailEventPublisher,
	sendMail mail.EmailSender,
) UseCase

Jump to

Keyboard shortcuts

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