Documentation ¶
Index ¶
- func NewMailService() services.IMailService
- type ImportNotificationTplData
- type MailService
- func (m *MailService) SendImportNotification(recipient *models.User, duration time.Duration, numHeartbeats int) error
- func (m *MailService) SendPasswordReset(recipient *models.User, resetLink string) error
- func (m *MailService) SendReport(recipient *models.User, report *models.Report) error
- func (m *MailService) SendSubscriptionNotification(recipient *models.User, hasExpired bool) error
- func (m *MailService) SendWakatimeFailureNotification(recipient *models.User, numFailures int) error
- type NoopSendingService
- type PasswordResetTplData
- type ReportTplData
- type SMTPSendingService
- type SendingService
- type SubscriptionNotificationTplData
- type WakatimeFailureNotificationNotificationTplData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMailService ¶
func NewMailService() services.IMailService
Types ¶
type MailService ¶
type MailService struct {
// contains filtered or unexported fields
}
func (*MailService) SendImportNotification ¶
func (*MailService) SendPasswordReset ¶
func (m *MailService) SendPasswordReset(recipient *models.User, resetLink string) error
func (*MailService) SendReport ¶
func (*MailService) SendSubscriptionNotification ¶
func (m *MailService) SendSubscriptionNotification(recipient *models.User, hasExpired bool) error
func (*MailService) SendWakatimeFailureNotification ¶
func (m *MailService) SendWakatimeFailureNotification(recipient *models.User, numFailures int) error
type NoopSendingService ¶
type NoopSendingService struct{}
type PasswordResetTplData ¶
type PasswordResetTplData struct {
ResetLink string
}
type ReportTplData ¶
type SMTPSendingService ¶
type SMTPSendingService struct {
// contains filtered or unexported fields
}
func NewSMTPSendingService ¶
func NewSMTPSendingService(config conf.SMTPMailConfig) *SMTPSendingService
type SendingService ¶
Click to show internal directories.
Click to hide internal directories.