domain

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reminder

type Reminder struct {
	Name  string `json:"name"`
	Email string `json:"email,omitempty"`
	Token string `json:"token,omitempty"`
	Tasks []Task `json:"tasks"`
}

type ReminderEmailNotificationUsecase

type ReminderEmailNotificationUsecase interface {
	SendEmail(receivers []string, subject string, body string) error
	PrepareHTMLTemplate(reminder Reminder) (string, error)
	GenerateMessageBuffer(fromAddress mail.Address, to string, cc []string, subject string, body string) bytes.Buffer
}

type ReminderFCMNotificationUsecase

type ReminderFCMNotificationUsecase interface {
	SendMessage(token string, title string, body string) error
}

type Task

type Task struct {
	TaskTitle       string `json:"task_title"`
	TaskDescription string `json:"task_description"`
	TaskDate        string `json:"task_date"`
}

Jump to

Keyboard shortcuts

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