Documentation ¶
Index ¶
- type Mailer
- func (m *Mailer) Error(conn *smtpd.Connection, err error)
- func (m *Mailer) Exit()
- func (m *Mailer) HandleDelivery(next func(conn *smtpd.Connection)) func(conn *smtpd.Connection)
- func (m *Mailer) HandleRecipient(next func(conn *smtpd.Connection)) func(conn *smtpd.Connection)
- func (m *Mailer) Main()
- func (m *Mailer) Wrap(x func()) func()
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mailer ¶
type Mailer struct { Options *Options Log *logrus.Logger Rethink *r.Session Producer *nsq.Producer Consumer *nsq.Consumer Raven *raven.Client Spam *spamc.Client TLSConfig *tls.Config }
func (*Mailer) HandleDelivery ¶
func (m *Mailer) HandleDelivery(next func(conn *smtpd.Connection)) func(conn *smtpd.Connection)
func (*Mailer) HandleRecipient ¶
func (m *Mailer) HandleRecipient(next func(conn *smtpd.Connection)) func(conn *smtpd.Connection)
type Options ¶
type Options struct { LogLevel logrus.Level RethinkOpts r.ConnectOpts NSQdAddress string LookupdAddress string SenderConcurrency int SpamdAddress string RavenDSN string SMTPTLSCert string SMTPTLSKey string Hostname string WelcomeMessage string ReadTimeout int WriteTimeout int DataTimeout int MaxConnections int MaxMessageSize int MaxRecipients int SMTPAddress string SMTPDAddress string }
Click to show internal directories.
Click to hide internal directories.