feat(platform): add the notification inbox and deterministic match search

This commit is contained in:
shira committed 2026-10-09 13:14:46 +03:00
1 parent 5edff21d2d
commit 0b11021b16
169 files changed
+17083 -443

No files matched your search

@@ -30,6 +30,8 @@ type Handler struct {
assessmentSignals *AssessmentSignalHandler
privacy *PrivacyHandler
evidence *EvidenceHandler
matches *MatchHandler
notifications *NotificationHandler
problems *problem.Responder
}
@@ -99,6 +101,17 @@ func WithEvidence(evidence *EvidenceHandler) HandlerOption {
return func(handler *Handler) { handler.evidence = evidence }
}
// WithNotifications serves the inbox of the candidate cabinet and of one
// organization cabinet.
func WithNotifications(notifications *NotificationHandler) HandlerOption {
return func(handler *Handler) { handler.notifications = notifications }
}
// WithMatches serves the deterministic match search of the visible bank.
func WithMatches(matches *MatchHandler) HandlerOption {
return func(handler *Handler) { handler.matches = matches }
}
func NewHandler(health *HealthHandler, problems *problem.Responder, options ...HandlerOption) *Handler {
handler := &Handler{health: health, problems: problems}
for _, option := range options {