services

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DatabaseEmailSettingsProvider added in v0.0.43

type DatabaseEmailSettingsProvider struct {
	Encryptor crypto.Encryptor
}

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
}

type EmailSettingsProvider added in v0.0.43

type EmailSettingsProvider interface {
	GetSMTPSettings(ctx context.Context) (*SMTPSettings, error)
}

type InvitationTemplateData

type InvitationTemplateData struct {
	ToEmail          string
	OrganizationName string
	InvitationLink   string
	InviterEmail     string
}

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 NotificationTemplateData struct {
	Title    string
	Body     string
	URL      string
	URLLabel string
}

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 SMTPSettings struct {
	Host      string
	Port      int
	Username  string
	Password  string
	FromName  string
	FromEmail string
	UseTLS    bool
}

type SentInvitationEmail added in v0.0.43

type SentInvitationEmail struct {
	ToEmail          string
	OrganizationName string
	InvitationLink   string
	InviterEmail     string
}

type SentNotificationEmail added in v0.0.43

type SentNotificationEmail struct {
	Bcc      []string
	Title    string
	Body     string
	URL      string
	URLLabel string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL