Documentation ¶
Index ¶
- func AuthNormal(addr string, auth *common.Auth) error
- func AuthTls(addr string, auth *common.Auth, tls *tls.Config) error
- func SendMailTls(addr string, auth common.Auth, env *BEnvelope, tls *tls.Config) error
- type BEnvelope
- type Conf
- type Delegate
- type RemoteConf
- type Service
- func (ss *Service) AUTH(auth *common.Auth) error
- func (ss *Service) NewSession(_ *smtp.Conn) (smtp.Session, error)
- func (ss *Service) SendMail(auth common.Auth, env *BEnvelope) error
- func (ss *Service) Start(sig chan struct{}) error
- func (ss *Service) StartWithCtx(cancel context.CancelFunc) error
- func (ss *Service) Stop()
- type Session
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BEnvelope ¶
type Conf ¶
type Conf struct { SrvAddr string `json:"srv_addr"` SrvDomain string `json:"srv_domain"` StampWalletAddr string `json:"stamp_wallet_addr"` RemoteConf map[string]*RemoteConf `json:"remote_conf"` MaxMessageBytes int `json:"max_message_bytes"` ReadTimeOut int `json:"read_time_out"` WriteTimeOut int `json:"write_time_out"` MaxRecipients int `json:"max_recipients"` }
type RemoteConf ¶
type RemoteConf struct { RemoteSrvCAs string `json:"ca_files"` RemoteCADomain string `json:"ca_domain"` AllowNotSecure bool `json:"allow_not_secure"` RemoteSrvName string `json:"remote_srv_name"` RemoteSrvPort int `json:"remote_srv_port"` ActiveStampAddr string `json:"active_stamp_addr"` // contains filtered or unexported fields }
func (*RemoteConf) String ¶
func (rc *RemoteConf) String() string
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) NewSession ¶
func (*Service) StartWithCtx ¶ added in v1.2.2
func (ss *Service) StartWithCtx(cancel context.CancelFunc) error
Click to show internal directories.
Click to hide internal directories.