Documentation
¶
Index ¶
- type DatabaseEmailSettingsProvider
- type EmailService
- type EmailServiceConfig
- type EmailSettingsProvider
- type InvitationTemplateData
- type MagicCodeTemplateData
- type NoopEmailService
- func (s *NoopEmailService) Reset()
- func (s *NoopEmailService) SendInvitationEmail(toEmail, organizationName, invitationLink, inviterEmail string) error
- func (s *NoopEmailService) SendMagicCodeEmail(toEmail, code, magicLink string) error
- func (s *NoopEmailService) SendNotificationEmail(bccEmails []string, title, body, url, urlLabel string) error
- func (s *NoopEmailService) SentInvitationEmails() []SentInvitationEmail
- func (s *NoopEmailService) SentMagicCodeEmails() []SentMagicCodeEmail
- func (s *NoopEmailService) SentNotificationEmails() []SentNotificationEmail
- type NotificationTemplateData
- type ResendEmailService
- func (s *ResendEmailService) SendInvitationEmail(toEmail, organizationName, invitationLink, inviterEmail string) error
- func (s *ResendEmailService) SendMagicCodeEmail(toEmail, code, magicLink string) error
- func (s *ResendEmailService) SendNotificationEmail(bccEmails []string, title, body, url, urlLabel string) error
- type SMTPEmailService
- func (s *SMTPEmailService) SendInvitationEmail(toEmail, organizationName, invitationLink, inviterEmail string) error
- func (s *SMTPEmailService) SendMagicCodeEmail(toEmail, code, magicLink string) error
- func (s *SMTPEmailService) SendNotificationEmail(bccEmails []string, title, body, url, urlLabel string) error
- type SMTPSettings
- type SentInvitationEmail
- type SentMagicCodeEmail
- type SentNotificationEmail
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatabaseEmailSettingsProvider ¶ added in v0.0.43
func (*DatabaseEmailSettingsProvider) GetSMTPSettings ¶ added in v0.0.43
func (p *DatabaseEmailSettingsProvider) GetSMTPSettings(ctx context.Context) (*SMTPSettings, error)
type EmailService ¶
type EmailService interface {
SendInvitationEmail(toEmail, organizationName, invitationLink, inviterEmail string) error
SendNotificationEmail(bccEmails []string, title, body, url, urlLabel string) error
SendMagicCodeEmail(toEmail, code, magicLink string) error
}
func BuildEmailService ¶ added in v0.14.0
func BuildEmailService(encryptor crypto.Encryptor, cfg EmailServiceConfig) EmailService
BuildEmailService creates an EmailService based on the provided configuration. Returns nil if required configuration is missing.
type EmailServiceConfig ¶ added in v0.14.0
type EmailSettingsProvider ¶ added in v0.0.43
type EmailSettingsProvider interface {
GetSMTPSettings(ctx context.Context) (*SMTPSettings, error)
}
type InvitationTemplateData ¶
type MagicCodeTemplateData ¶ added in v0.14.0
type NoopEmailService ¶ added in v0.0.43
type NoopEmailService struct {
// contains filtered or unexported fields
}
func NewNoopEmailService ¶ added in v0.0.43
func NewNoopEmailService() *NoopEmailService
func (*NoopEmailService) Reset ¶ added in v0.0.43
func (s *NoopEmailService) Reset()
func (*NoopEmailService) SendInvitationEmail ¶ added in v0.0.43
func (s *NoopEmailService) SendInvitationEmail(toEmail, organizationName, invitationLink, inviterEmail string) error
func (*NoopEmailService) SendMagicCodeEmail ¶ added in v0.14.0
func (s *NoopEmailService) SendMagicCodeEmail(toEmail, code, magicLink string) error
func (*NoopEmailService) SendNotificationEmail ¶ added in v0.0.43
func (s *NoopEmailService) SendNotificationEmail(bccEmails []string, title, body, url, urlLabel string) error
func (*NoopEmailService) SentInvitationEmails ¶ added in v0.0.43
func (s *NoopEmailService) SentInvitationEmails() []SentInvitationEmail
func (*NoopEmailService) SentMagicCodeEmails ¶ added in v0.14.0
func (s *NoopEmailService) SentMagicCodeEmails() []SentMagicCodeEmail
func (*NoopEmailService) SentNotificationEmails ¶ added in v0.0.43
func (s *NoopEmailService) SentNotificationEmails() []SentNotificationEmail
type NotificationTemplateData ¶ added in v0.0.43
type ResendEmailService ¶
type ResendEmailService struct {
// contains filtered or unexported fields
}
func NewResendEmailService ¶
func NewResendEmailService(apiKey, fromName, fromEmail, templateDir string) *ResendEmailService
func (*ResendEmailService) SendInvitationEmail ¶
func (s *ResendEmailService) SendInvitationEmail(toEmail, organizationName, invitationLink, inviterEmail string) error
func (*ResendEmailService) SendMagicCodeEmail ¶ added in v0.14.0
func (s *ResendEmailService) SendMagicCodeEmail(toEmail, code, magicLink string) error
func (*ResendEmailService) SendNotificationEmail ¶ added in v0.0.43
func (s *ResendEmailService) SendNotificationEmail(bccEmails []string, title, body, url, urlLabel string) error
type SMTPEmailService ¶ added in v0.0.43
type SMTPEmailService struct {
// contains filtered or unexported fields
}
func NewSMTPEmailService ¶ added in v0.0.43
func NewSMTPEmailService(settingsProvider EmailSettingsProvider, templateDir string) *SMTPEmailService
func (*SMTPEmailService) SendInvitationEmail ¶ added in v0.0.43
func (s *SMTPEmailService) SendInvitationEmail(toEmail, organizationName, invitationLink, inviterEmail string) error
func (*SMTPEmailService) SendMagicCodeEmail ¶ added in v0.14.0
func (s *SMTPEmailService) SendMagicCodeEmail(toEmail, code, magicLink string) error
func (*SMTPEmailService) SendNotificationEmail ¶ added in v0.0.43
func (s *SMTPEmailService) SendNotificationEmail(bccEmails []string, title, body, url, urlLabel string) error
type SMTPSettings ¶ added in v0.0.43
type SentInvitationEmail ¶ added in v0.0.43
type SentMagicCodeEmail ¶ added in v0.14.0
Click to show internal directories.
Click to hide internal directories.