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 ¶
EmailFromString creates evmail.Address from string
Types ¶
type DepConverter ¶
type DepConverter struct{}
DepConverter is the converter for https://promptapi.com/marketplace/description/email_verification-api
func (DepConverter) Can ¶
func (DepConverter) Can(_ evmail.Address, result ev.ValidationResult, _ converter.Options) bool
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
Click to show internal directories.
Click to hide internal directories.