Documentation
¶
Index ¶
- func CreateHistogramByBucket(latencies []time.Duration, bucketCount int)
- func CreateHistogramByDuration(latencies []time.Duration, bucketSize time.Duration)
- func GetLatencies(p string, w io.Writer) error
- func HasFlexedPrefix(s, prefix string) bool
- func HashID() string
- func IsMailText(p string) bool
- func OptimisticUID() (string, error)
- func ReadFirstBytes(p string, bytes int) ([]byte, error)
- func Send(data map[string]any, opts ...Option) (map[string]any, error)
- type Bulk
- type Callback
- type Client
- func (c *Client) Auth(a smtp.Auth) error
- func (c *Client) Close() error
- func (c *Client) Data() (io.WriteCloser, error)
- func (c *Client) Extension(ext string) (bool, string)
- func (c *Client) Hello(localName string) error
- func (c *Client) Mail(from string) error
- func (c *Client) Noop() error
- func (c *Client) Quit() error
- func (c *Client) Rcpt(to string) error
- func (c *Client) Reset() error
- func (c *Client) StartTLS(config *tls.Config) error
- func (c *Client) TLSConnectionState() (state tls.ConnectionState, ok bool)
- func (c *Client) Verify(addr string) error
- type DeliveryResult
- type Latencies
- type Latency
- type Mail
- type MockServer
- type MockServerSession
- type Option
- type Req
- type Res
- type Result
- type TLS
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateHistogramByBucket ¶
func IsMailText ¶
func OptimisticUID ¶
Types ¶
type Bulk ¶
type Bulk struct {
Addr string `map:"addr" validate:"required"`
From string `map:"from" validate:"required"`
To string `map:"to" validate:"required"`
Subject string `map:"subject"`
MyHostname string `map:"myhostname"`
Session int `map:"session"`
Message int `map:"message"`
Length int `map:"length"`
// contains filtered or unexported fields
}
func (*Bulk) DeliverWithResult ¶ added in v0.19.0
func (b *Bulk) DeliverWithResult() DeliveryResult
type Client ¶
func (*Client) TLSConnectionState ¶
func (c *Client) TLSConnectionState() (state tls.ConnectionState, ok bool)
type DeliveryResult ¶ added in v0.19.0
type Latencies ¶
type Latencies struct {
EarliestTime time.Time
Data []Latency
MailDir string
TimeFormat string
TimeLocation *time.Location
}
func (*Latencies) FindEarliestSentTime ¶
type Mail ¶
type MockServer ¶
func (*MockServer) Serve ¶
func (s *MockServer) Serve() error
type MockServerSession ¶
type MockServerSession struct {
// contains filtered or unexported fields
}
type Req ¶ added in v0.20.0
type Req struct {
Addr string `map:"addr" validate:"required"`
From string `map:"from" validate:"required"`
To string `map:"to" validate:"required"`
Subject string `map:"subject"`
MyHostname string `map:"myhostname"`
Session int `map:"session"`
Message int `map:"message"`
Length int `map:"length"`
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.