Documentation
¶
Overview ¶
Package feed owns bounded ephemeral conversation frames, never durable history.
Index ¶
- type Hub
- func (h *Hub) Delta(id protocol.SessionID, draft protocol.ConversationDraft) error
- func (h *Hub) Invalidate(id protocol.SessionID)
- func (h *Hub) Observed(id protocol.SessionID) bool
- func (h *Hub) Publish(id protocol.SessionID, change protocol.ConversationChange)
- func (h *Hub) PublishBackground(id protocol.SessionID, tasks []protocol.ConversationBackgroundTask)
- func (h *Hub) Reserve(id protocol.SessionID, closed <-chan struct{}) *Reserved
- func (h *Hub) Reset(id protocol.SessionID)
- func (h *Hub) Seal(id protocol.SessionID, turn protocol.TurnID)
- func (h *Hub) Sequence(id protocol.SessionID) uint64
- func (h *Hub) Sessions() []protocol.SessionID
- type Reserved
- type Subscription
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hub ¶
type Hub struct {
// contains filtered or unexported fields
}
func (*Hub) Invalidate ¶ added in v0.2.3
Invalidate asks observers to refresh stored history while keeping the active turn's provisional output available to their next subscription.
func (*Hub) Observed ¶ added in v0.2.3
Observed includes reservations made before the initial history read completes.
func (*Hub) Publish ¶
func (h *Hub) Publish(id protocol.SessionID, change protocol.ConversationChange)
Publish accepts a committed change. Delta uses its separate bounded path.
func (*Hub) PublishBackground ¶ added in v0.2.4
func (h *Hub) PublishBackground(id protocol.SessionID, tasks []protocol.ConversationBackgroundTask)
PublishBackground retains deduplication state only for the background task snapshot still published by the store. Older completions stay in history.
type Reserved ¶
type Reserved struct {
Sequence uint64
Drafts []protocol.ConversationDraft
// contains filtered or unexported fields
}
Reserved registers before the history read, so concurrent committed frames cannot fall between the initial snapshot and live observation.
func (*Reserved) Subscribe ¶
func (r *Reserved) Subscribe(snapshot protocol.ConversationSnapshot) link.Subscription
Subscribe receives a history page already fitted with room for these drafts.
type Subscription ¶
type Subscription struct {
// contains filtered or unexported fields
}
func (*Subscription) Close ¶
func (s *Subscription) Close() error