verifier

package
v0.0.0-...-62bad6c Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ResultEmpty         = VerifyResult{Message: "error with unknown"}
	ResultFormatInvalid = VerifyResult{Message: "email format invalid", CatchAll: true}
	ResultHostInvalid   = VerifyResult{Message: "host has no mx records", ValidFormat: true, CatchAll: true}
)

Functions

This section is empty.

Types

type Dialer

type Dialer func(network, address string) (net.Conn, error)

type VerifyOptions

type VerifyOptions struct {
	To            string
	ProxyType     string
	ProxyAddress  string
	ProxyPort     int
	ProxyUsername string
	ProxyPassword string
	// contains filtered or unexported fields
}

func (VerifyOptions) HasProxy

func (r VerifyOptions) HasProxy() bool

type VerifyResult

type VerifyResult struct {
	ValidFormat bool
	Deliverable bool
	HostExists  bool
	CatchAll    bool
	Message     string
}

func Verify

func Verify(options VerifyOptions) VerifyResult

func VerifyNormal

func VerifyNormal(options VerifyOptions) VerifyResult

func VerifyWithSocks5

func VerifyWithSocks5(options VerifyOptions) VerifyResult

Jump to

Keyboard shortcuts

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