Documentation
¶
Overview ¶
Package live provides the ephemeral real-time side of the event API. NATS carries wakeups and preview deltas; PostgreSQL remains authoritative.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Broker ¶
type Broker struct {
// contains filtered or unexported fields
}
Broker owns one reconnecting Core NATS connection. Core NATS is deliberately used without JetStream: notifications and previews are ephemeral, while any missed persisted-event wakeup is repaired from PostgreSQL.
func (*Broker) NotifySession ¶
func (*Broker) PublishPreview ¶
func (b *Broker) PublishPreview( _ context.Context, sessionID string, frame domain.PreviewFrame, ) error
PublishPreview emits a best-effort preview frame. A lost or duplicated preview never changes the authoritative event history.
Click to show internal directories.
Click to hide internal directories.