email

package
v0.0.0-...-0250509 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmailConfig

type EmailConfig struct {
	EmailHost     string
	EmailPort     int
	Log           *slog.Logger
	TLS           bool
	TLSInsecure   bool
	PlainAuth     bool
	EmailUsername string
	EmailPassword string
}

type EmailService

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

func NewEmailService

func NewEmailService(config EmailConfig) (es *EmailService, err error)

func (*EmailService) ConvertMessage

func (es *EmailService) ConvertMessage(data []byte) (services.ServiceMessage, error)

func (*EmailService) ID

func (es *EmailService) ID() string

func (*EmailService) Logger

func (es *EmailService) Logger() *slog.Logger

func (*EmailService) NewClient

func (es *EmailService) NewClient() (services.PumpClient, error)

func (*EmailService) PushMessage

func (*EmailService) SquashAndPushMessage

func (*EmailService) String

func (es *EmailService) String() string

func (*EmailService) Validate

func (es *EmailService) Validate(data []byte) error

Jump to

Keyboard shortcuts

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