Documentation ¶
Index ¶
- type ReminderEmailNotification
- func (r *ReminderEmailNotification) GenerateMessageBuffer(fromAddress mail.Address, to string, cc []string, subject string, body string) bytes.Buffer
- func (r *ReminderEmailNotification) PrepareHTMLTemplate(reminder domain.Reminder) (string, error)
- func (r *ReminderEmailNotification) SendEmail(receivers []string, subject string, body string) error
- type ReminderFCMNotification
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReminderEmailNotification ¶
type ReminderEmailNotification struct {
// contains filtered or unexported fields
}
func NewReminderEmailNotification ¶
func NewReminderEmailNotification(mailConfig config.SMTPMailConfig) *ReminderEmailNotification
func (*ReminderEmailNotification) GenerateMessageBuffer ¶
func (*ReminderEmailNotification) PrepareHTMLTemplate ¶
func (r *ReminderEmailNotification) PrepareHTMLTemplate(reminder domain.Reminder) (string, error)
type ReminderFCMNotification ¶
type ReminderFCMNotification struct {
// contains filtered or unexported fields
}
func NewReminderFCMNotification ¶
func NewReminderFCMNotification(ctx context.Context, fcmClient *messaging.Client) ReminderFCMNotification
func (*ReminderFCMNotification) SendMessage ¶
func (r *ReminderFCMNotification) SendMessage(token string, title string, body string) error
Click to show internal directories.
Click to hide internal directories.