promptemailverificationapi

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

Documentation

Index

Constants

View Source
const (
	// Name is a name of converter
	Name converter.Name = "PromptEmailVerificationApi"

	// ErrorSyntaxInvalid is a syntax error
	ErrorSyntaxInvalid = "Invalid email syntax."
)

Variables

This section is empty.

Functions

func EmailFromString

func EmailFromString(email string) evmail.Address

EmailFromString creates evmail.Address from string

func NewDepValidator

func NewDepValidator(smtpValidator ev.Validator) ev.Validator

NewDepValidator is a common dep validator object

Types

type DepConverter

type DepConverter struct{}

DepConverter is the converter for https://promptapi.com/marketplace/description/email_verification-api

func NewDepConverter

func NewDepConverter() DepConverter

NewDepConverter creates DepConverter

func (DepConverter) Can

Can be used for ev.ValidationResult

func (DepConverter) Convert

func (d DepConverter) Convert(email evmail.Address, resultInterface ev.ValidationResult, _ converter.Options) (result interface{})

Convert converts ev.ValidationResult in DepPresentation

type DepPresentation

type DepPresentation struct {
	Email          string `json:"email"`
	SyntaxValid    bool   `json:"syntax_valid"`
	IsDisposable   bool   `json:"is_disposable"`
	IsRoleAccount  bool   `json:"is_role_account"`
	IsCatchAll     bool   `json:"is_catch_all"`
	IsDeliverable  bool   `json:"is_deliverable"`
	CanConnectSMTP bool   `json:"can_connect_smtp"`
	IsInboxFull    bool   `json:"is_inbox_full"`
	IsDisabled     bool   `json:"is_disabled"`
	MxRecords      mx     `json:"mx_records"`
	Message        string `json:"message"`
}

DepPresentation is representation of https://promptapi.com/marketplace/description/email_verification-api

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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