Dev Portal
Modules
read from source · internal/app
Wiring
who constructs what, in start order- app
- handlers
- modules
- infrastructure
modules/mail
module- Package
- gorbital.dev/modules/mail
- Constructed in
- internal/app/app.go:74
- Provides
- mail.Sender, mail.AsyncSender
- Needs
- jobs.Client, settings.Store
- Settings
- mail.sender_name, mail.reply_to
- Jobs
- mail.send
Used by
2 modules- modules/authas Sender
- modules/orgsas Sender
Uses
2 dependencies- modules/jobsas AsyncSender
- smtp
Source
internal/app/app.go// mail sends through jobs so a slow SMTP never blocks a request. mailer := mail.NewSMTP(cfg.SMTP, settings) sender := jobs.AsyncSender(jobsClient, mailer) authSvc := auth.New(pool, sender, audit) orgsSvc := orgs.New(pool, sender, audit)