Documentation
¶
Index ¶
- Variables
- type EmailSender
- type Sender
- func (e *Sender) Send(ctx context.Context, u *users.User, subject string, ...) error
- func (e *Sender) SendConfirmEmail(ctx context.Context, usr *users.User) error
- func (e *Sender) SendMagicLink(ctx context.Context, user *users.User, code string) error
- func (e *Sender) SendNotification(ctx context.Context, usr *users.User, notif *notification.Notification) error
- func (e *Sender) SendWelcome(ctx context.Context, u *users.User) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotSupported = errors.New("notification type not supported")
Functions ¶
This section is empty.
Types ¶
type EmailSender ¶
type Sender ¶
type Sender struct {
// contains filtered or unexported fields
}
func New ¶
func New( logger *zap.Logger, sender emails.Sender, userRepo db_users.Repository, codebaseUserRepo db_codebase.CodebaseUserRepository, commentsRepo db_comments.Repository, changeRepo db_change.Repository, codebaseRepo db_codebase.CodebaseRepository, workspaceRepo db_workspace.Repository, suggestionRepo db_suggestion.Repository, reviewRepo db_review.ReviewRepository, notificationSettingsRepository db_newsletter.NotificationSettingsRepository, jwtService *service_jwt.Service, notificationPreferences *service_notification.Preferences, analyticsClient analytics.Client, ) *Sender
func (*Sender) SendConfirmEmail ¶
func (*Sender) SendMagicLink ¶
func (*Sender) SendNotification ¶
func (e *Sender) SendNotification(ctx context.Context, usr *users.User, notif *notification.Notification) error
Click to show internal directories.
Click to hide internal directories.