concealEmail

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ActualEmailIsUnverified = errors.New("E-mail ownership has not been verified")

Functions

This section is empty.

Types

type ConcealEmailGateway

type ConcealEmailGateway interface {
	AddConcealedEmailToActualEmailMapping(concealPrefix string, actualEmail string, description *string) error
	DeleteConcealedEmailToActualEmailMapping(concealPrefix string) error
	UpdateConcealedEmail(concealPrefix string, description *string) error
	GetActualEmailDetails(actualEmail string) (string, bool, error)
}

type ConcealEmailUsecase

type ConcealEmailUsecase interface {
	Add(sourceEmail string, description *string) (string, error)
	Delete(concealedEmailPrefix string) error
	AddDescriptionToExistingEmail(concealedEmailPrefix string, description string) error
	DeleteDescriptionFromExistingEmail(concealedEmailPrefix string) error
}

type ConcealEmailUsecaseImpl

type ConcealEmailUsecaseImpl struct{}

func (ConcealEmailUsecaseImpl) Add

func (receiver ConcealEmailUsecaseImpl) Add(sourceEmail string, description *string) (string, error)

func (ConcealEmailUsecaseImpl) AddDescriptionToExistingEmail

func (receiver ConcealEmailUsecaseImpl) AddDescriptionToExistingEmail(concealedEmailPrefix string, description string) error

func (ConcealEmailUsecaseImpl) Delete

func (receiver ConcealEmailUsecaseImpl) Delete(concealedEmailPrefix string) error

func (ConcealEmailUsecaseImpl) DeleteDescriptionFromExistingEmail

func (receiver ConcealEmailUsecaseImpl) DeleteDescriptionFromExistingEmail(concealedEmailPrefix string) error

func (ConcealEmailUsecaseImpl) Init

func (receiver ConcealEmailUsecaseImpl) Init()

Jump to

Keyboard shortcuts

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