Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Handlers ¶
func Handlers() []string
Drivers returns a sorted list of the names of the registered drivers.
func RegisterSmtpValidatorHandler ¶
func RegisterSmtpValidatorHandler(name string, h SmtpValidator)
RegisterSmtpValidatorHandler makes a smtp handler available by the provided name. If RegisterSmtpValidatorHandler is called twice with the same name or if driver is nil, it panics.
Types ¶
type SmtpValidator ¶
type SmtpValidator interface {
Validate(*mailiosmtp.Mail) error
}
func GetHandler ¶
func GetHandler(name string) SmtpValidator
Click to show internal directories.
Click to hide internal directories.