forwardEmail

package
v0.0.0-...-ff5a11b Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUnableToParseEmailError

func NewUnableToParseEmailError(cause error) error

func NewUnableToSendEmailError

func NewUnableToSendEmailError(cause error) error

Types

type ByteSliceMessage

type ByteSliceMessage mail.Message

func (*ByteSliceMessage) ByteSlice

func (email *ByteSliceMessage) ByteSlice() []byte

type ConfigurationGateway

type ConfigurationGateway interface {
	GetRealEmailAddressForConcealPrefix(concealedRecipientPrefix string) (string, *string, error)
}

type ForwardEmailUsecase

type ForwardEmailUsecase interface {
	ForwardEmail(url string) error
}

type ForwardEmailUsecaseImpl

type ForwardEmailUsecaseImpl struct{}

func (ForwardEmailUsecaseImpl) ForwardEmail

func (receiver ForwardEmailUsecaseImpl) ForwardEmail(url string) error

type ForwarderError

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

top level error for the forwarder

func (*ForwarderError) Cause

func (error *ForwarderError) Cause() error

func (*ForwarderError) Error

func (error *ForwarderError) Error() string

func (*ForwarderError) Format

func (error *ForwarderError) Format(s fmt.State, verb rune)

func (*ForwarderError) Is

func (error *ForwarderError) Is(target error) bool

func (*ForwarderError) SetCause

func (error *ForwarderError) SetCause(cause error)

func (*ForwarderError) SetMessage

func (error *ForwarderError) SetMessage(message string)

func (*ForwarderError) Unwrap

func (error *ForwarderError) Unwrap() error

type ReadEmailGateway

type ReadEmailGateway interface {
	ReadEmail(uri string) ([]byte, error)
}

type SendEmailGateway

type SendEmailGateway interface {
	SendEmail(email []byte, recipients []string) error
}

type UnableToParseEmailError

type UnableToParseEmailError struct {
	ForwarderError
}

sub error

func (*UnableToParseEmailError) Is

func (error *UnableToParseEmailError) Is(target error) bool

type UnableToReadEmailError

type UnableToReadEmailError struct {
	ForwarderError
}

sub error

func NewUnableToReadEmailError

func NewUnableToReadEmailError(url string, cause error) *UnableToReadEmailError

func (*UnableToReadEmailError) Is

func (error *UnableToReadEmailError) Is(target error) bool

type UnableToSendEmailError

type UnableToSendEmailError struct {
	ForwarderError
}

sub error

func (*UnableToSendEmailError) Is

func (error *UnableToSendEmailError) Is(target error) bool

Jump to

Keyboard shortcuts

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