Documentation
¶
Index ¶
- type DatabaseEmailSettingsProvider
- type EmailService
- type EmailSettingsProvider
- type InvitationTemplateData
- type NoopEmailService
- func (s *NoopEmailService) Reset()
- func (s *NoopEmailService) SendInvitationEmail(toEmail, organizationName, invitationLink, inviterEmail string) error
- func (s *NoopEmailService) SendNotificationEmail(bccEmails []string, title, body, url, urlLabel string) error
- func (s *NoopEmailService) SentInvitationEmails() []SentInvitationEmail
- func (s *NoopEmailService) SentNotificationEmails() []SentNotificationEmail
- type NotificationTemplateData
- type ResendEmailService
- type SMTPEmailService
- type SMTPSettings
- type SentInvitationEmail
- 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 EmailSettingsProvider ¶ added in v0.0.43
type EmailSettingsProvider interface {
GetSMTPSettings(ctx context.Context) (*SMTPSettings, error)
}
type InvitationTemplateData ¶
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) 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) 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) 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) 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
Click to show internal directories.
Click to hide internal directories.