notifsvc

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2026 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GroupNotificationsByDay

func GroupNotificationsByDay(notifications []notiftypes.Notification) []notiftypes.NotificationGroup

GroupNotificationsByDay sorts notifications into groups by day.

func Render

func Render(notif notiftypes.Notification) template.HTML

Render returns an HTML representation of the notification that is ready to be inserted on the notifications page.

This didn't fit well into the templates well, so it's a separate function.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(repo notifports.Repository) *Service

func (*Service) Count

func (svc *Service) Count() (uint, error)

func (*Service) GetAll

func (svc *Service) GetAll() ([]notiftypes.NotificationGroup, error)

func (*Service) InvalidateCache

func (svc *Service) InvalidateCache()

func (*Service) MarkAllAsRead

func (svc *Service) MarkAllAsRead() error

Jump to

Keyboard shortcuts

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