Documentation
¶
Overview ¶
Package interventions implements the PauseToken-correlated TUI intervention inbox.
Index ¶
- type Inbox
- func (i Inbox) Active() []Item
- func (i Inbox) History() []Item
- func (i Inbox) Items() []Item
- func (i Inbox) Reconcile(snapshots []types.PauseSnapshot, generation uint64) Inbox
- func (i Inbox) ReconcilePage(response types.PauseListResponse, generation uint64, now time.Time) Inbox
- func (i Inbox) Resolve(token, outcome string, generation uint64) Inbox
- func (i Inbox) Select(token string) Inbox
- func (i Inbox) Selected() (Item, bool)
- type Item
- type Kind
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Inbox ¶
Inbox is a value-updated queue with resolved-token anti-resurrection.
func (Inbox) Reconcile ¶
func (i Inbox) Reconcile(snapshots []types.PauseSnapshot, generation uint64) Inbox
Reconcile applies an authoritative pause snapshot without resurrecting a token resolved by a newer generation.
func (Inbox) ReconcilePage ¶
func (i Inbox) ReconcilePage(response types.PauseListResponse, generation uint64, now time.Time) Inbox
ReconcilePage applies a typed canonical page. Missing entries are only resolved-elsewhere when the response is a complete first page.
Click to show internal directories.
Click to hide internal directories.