Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ResolvedConfig ¶
type ResolvedConfig struct {
PublicUserURL *url.URL
FromAddress string
FromName string
SMTP SMTPConfig
VerificationTTL time.Duration
ResetTTL time.Duration
}
func ResolveConfig ¶
func ResolveConfig(cfg *appconfig.Config) (ResolvedConfig, error)
ResolveConfig validates the current runtime mail configuration.
type SMTPConfig ¶
type SMTPSender ¶
type SMTPSender struct {
// contains filtered or unexported fields
}
func NewSMTPSender ¶
func NewSMTPSender(cfg ResolvedConfig) *SMTPSender
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(repo *cluster.Repository, configProvider func() *appconfig.Config) *Service
func (*Service) ProcessOne ¶
ProcessOne processes at most one queued message and is exported for focused tests.
Click to show internal directories.
Click to hide internal directories.