Versions in this module Expand all Collapse all v0 v0.1.1 Jun 25, 2026 v0.1.0 Jun 25, 2026 Changes in this version + func WithUser(ctx context.Context, userID string) context.Context + type Filter struct + Limit int + Offset int + UnreadOnly bool + type Notification struct + ActionURL string + Body string + CreatedAt time.Time + Data map[string]any + ID string + Read bool + ReadAt *time.Time + Title string + Type string + UserID string + type Service struct + func FromKernel(k *togo.Kernel) (*Service, bool) + func (s *Service) Delete(id string) bool + func (s *Service) List(userID string, f Filter) []*Notification + func (s *Service) MarkAllRead(userID string) int + func (s *Service) MarkRead(id string) bool + func (s *Service) Notify(ctx context.Context, userID string, n Notification) *Notification + func (s *Service) UnreadCount(userID string) int + func (s *Service) WithStore(store Store) *Service + type Store interface + Add func(n *Notification) + ByUser func(userID string) []*Notification + Delete func(id string) bool + Get func(id string) (*Notification, bool)