usecase

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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 (r *ReminderEmailNotification) GenerateMessageBuffer(fromAddress mail.Address, to string, cc []string, subject string, body string) bytes.Buffer

func (*ReminderEmailNotification) PrepareHTMLTemplate

func (r *ReminderEmailNotification) PrepareHTMLTemplate(reminder domain.Reminder) (string, error)

func (*ReminderEmailNotification) SendEmail

func (r *ReminderEmailNotification) SendEmail(receivers []string, subject string, body 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

Jump to

Keyboard shortcuts

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