lib

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckResult

type CheckResult struct {
	Success     bool                     `json:"success"`
	HelloBanner string                   `json:"hello_banner"`
	TlsVersion  string                   `json:"tls_version"`
	Error       *SmtpError               `json:"error_message,omitempty"`
	GeneralLog  smtp_commands.CommandLog `json:"general_log"`
	SPFLog      smtp_commands.CommandLog `json:"spf_log"`
}

type SmtpError

type SmtpError struct {
	Command      smtp_commands.Commands `json:"command"`
	ErrorMessage string                 `json:"error_msg"`
}

func NewSmtpError

func NewSmtpError(Op smtp_commands.Commands, err error) *SmtpError

func (*SmtpError) String

func (se *SmtpError) String() string

type TransportServer

type TransportServer struct {
	Server    string `json:"server"`
	Port      int    `json:"port"`
	OnMx      bool   `json:"mx"`
	TestEmail string `json:"test_email"`
}

func (*TransportServer) Address

func (t *TransportServer) Address() (string, error)

func (*TransportServer) Connect

func (t *TransportServer) Connect(timeout time.Duration) (conn net.Conn, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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