reminder

package
v0.0.26-beta-rc.4 Latest Latest
Warning

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

Go to latest
Published: May 5, 2022 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitLogger

func InitLogger(logger *logrus.Logger)

func InitSchedule

func InitSchedule() error

func SendUrgencyNotifications

func SendUrgencyNotifications(username string) error

Will be executed by a scheduler in order to send periodic notifications to the user

Types

type Reminder

type Reminder struct {
	Id                uint                          `json:"id"`
	Name              string                        `json:"name"`
	Description       string                        `json:"description"`
	Priority          database.NotificationPriority `json:"priority"`
	CreatedDate       int64                         `json:"createdDate"` // Dates are represented as unix millis for making access in frontend easier
	DueDate           int64                         `json:"dueDate"`
	Owner             string                        `json:"owner"`
	UserWasNotified   bool                          `json:"userWasNotified"`
	UserWasNotifiedAt int64                         `json:"userWasNotifiedAt"`
}

func GetUserReminders

func GetUserReminders(username string) ([]Reminder, error)

Returns a users reminders but transforms the underlying date to a unix timestamp

Jump to

Keyboard shortcuts

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