Documentation
¶
Overview ¶
Package hostnotify adapts authenticated host transitions to the shared notification core.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Apply ¶
Apply stores adapted outcomes; aliases retain the canonical ID when concurrent observers report one logical wait with different event keys. Only outstanding waits need aliases.
func DedupeKey ¶
func DedupeKey(hostID string, event hostproto.NotifyEvent) (string, bool)
DedupeKey names the transition a withdrawal retires.
func Notification ¶
func Notification(hostID string, event hostproto.NotifyEvent, now time.Time) (notify.Notification, bool)
Notification adapts one wire event into the local model.
Text is sanitized and bounded again on arrival even though the host did it before sending. The host is across an authenticated trust boundary, not inside it, and this is the last point before the text becomes a stored record that a local desktop service may later be handed.