package
0.0.0-20230409163946-b8b9e6a0552e
Repository: https://github.com/go-email-validator/go-email-validator.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

DefaultOptions returns options with default values.
DefaultRandomCacheKeyGetter generates of cache key for RandomRCPT.
DirectDial generates smtpclient.SMTPClient (smtp.Client).
EmptyOptions returns empty options to avoid rewriting of default values.
ErrorsToEVSMTPErrors converts []error to []AliasError It is used like fix of msgpack problems https://github.com/vmihailenco/msgpack/issues/294.
ExtID returns register extent id, used for msgpack.RegisterExt.
H12IODial generates smtpclient.SMTPClient (smtp.Client) with proxy in socks.Dial.
LookupMX is default realization for looking net.MX.
NewChecker instantiates Checker.
NewCheckerCacheRandomRCPT creates Checker with caching of RandomRCPT calling.
NewError is constructor for DefaultError.
NewInput instantiates Input.
NewMockChecker creates a new mock instance.
NewMockCheckerWithRandomRCPT creates a new mock instance.
NewMockRandomRCPT creates a new mock instance.
NewOptions instantiates Options.
NewSendMail instantiates SendMail.
NewSendMailCustom creates SendMailFactory with dialing and customization calling of SendMailFactory.
NewSendMailFactory creates SendMailDialerFactory.
SetExtID sets register extent id, used for msgpack.RegisterExt.

# Constants

Constants of stages.
Constants of stages.
Constants of stages.
Constants of stages.
Configuration constants.
Configuration constants.
Configuration constants.
DefaultTimeoutConnection is timeout for connection.
DefaultTimeoutResponse is timeout for communication with smtp server.
Configuration constants.
Configuration constants.
Constants of stages.
Constants of stages.
Constants of stages.
Constants of stages.
Constants of stages.
TCPConnection is tcp name.

# Variables

DefaultFromEmail is address, used as default From email.
ErrConnection is error of connection.

# Structs

ARandomRCPT is abstract realization of RandomRCPT.
ASMTPError isa abstract struct for Checker errors.
CheckerDTO is DTO for NewChecker.
DefaultError is default error.
MockChecker is a mock of Checker interface.
MockCheckerMockRecorder is the mock recorder for MockChecker.
MockCheckerWithRandomRCPT is a mock of CheckerWithRandomRCPT interface.
MockCheckerWithRandomRCPTMockRecorder is the mock recorder for MockCheckerWithRandomRCPT.
MockRandomRCPT is a mock of RandomRCPT interface.
MockRandomRCPTMockRecorder is the mock recorder for MockRandomRCPT.
OptionsDTO is dto for NewOptions.
SafeSendMailStage is thread safe SendMailStage.

# Interfaces

Checker is SMTP validation.
CheckerWithRandomRCPT is used for caching of RandomRCPT.
Error is interface of Checker errors.
Input describes data for Checker.
Options describes smtp options.
RandomRCPT Need to realize of is-a relation (inheritance).
SendMail is interface of custom realization as smtp.SendMail.

# Type aliases

AliasError is alias to fix msgpack.
DialFunc is function type to create smtpclient.SMTPClient.
FuncLookupMX returns MXs.
MXs is short alias for []*net.MX.
RandomCacheKeyGetter is type of function to get cache key.
RandomEmail is function type to generate random email for checking of Catching All emails by RCPTs.
RandomRCPTFunc is function for checking of Catching All.
SendMailDialerFactory is factory for SendMail with dialing.
SendMailFactory is factory for SendMail.
SendMailStage is stage type of SendMail.