presentation

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: MIT Imports: 4 Imported by: 0

README

Presenters help to move to the library from another service.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetEmail

type GetEmail func(email string) evmail.Address

GetEmail converts string to evmail.Address

type Interface

type Interface interface {
	Validate(email string, opts map[ev.ValidatorName]interface{}) (interface{}, error)
	ValidateFromAddress(email evmail.Address, opts map[ev.ValidatorName]interface{}) (interface{}, error)
}

Interface is a decorator to represent result in a form of some service

func NewPresenter

func NewPresenter(getEmail GetEmail, validator ev.Validator, converter converter.Interface) Interface

NewPresenter creates presenter decorator

Jump to

Keyboard shortcuts

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