Skip to main content

Module model

Module model 

Source
Expand description

The state of the whole interface (doc 34, section 4): everything the screens show, with no input or output. update changes it and view only reads it, so both are tested without a terminal or a network.

Structs§

ClusterScreen
Confirm
DrainWatch
Fail
A failed call, reduced to what the screens show.
Feed
A thing read on a schedule: the last good value, the error of the last try, and when to try again. A failure keeps the value (it becomes stale) and backs off (×2 up to 30 s; Retry-After is obeyed).
Input
Menu
What Enter opens on an item of a list: the title names the item, and each entry is an action of the screen.
Messages
What the Messages view of a topic holds.
Model
Monitor
Notice
A short message in the footer.
Options
What the person set at the start: language, look, profile and history.
ProfilesScreen
The Profiles tab (doc 34, section 6.7): the profiles file and the selected profile.
Received
A message this session received (TUI-MSG-04): the API does not list a queue, so these rows are what was read.
Secret
The secret of a new token, shown once (TUI-TOK-03). It lives only in this popup: never in a notice, a log or an error.
TokensScreen
The Tokens tab (doc 34, section 6.5).
TopicMonitor
The charts of one queue (TUI-MSG-11, TUI-MON-*): what was sampled since they were opened.
TopicStats
The numbers of the topics, by name, and whether the read was incomplete.
TopicsScreen
The Topics tab (doc 34, section 6.4).
Tx
The catalog in a language: the views and the update ask it for their texts.
Typed
A popup that asks to be typed to proceed (stopping the cluster).

Enums§

BodyView
How the body of an open message is shown: as sent (the default), formatted, or as base64.
ClusterView
Goal
What the drain watch is waiting for.
InputPurpose
Modal
One popup at a time (TUI-FRM-07); Esc closes it.
Pane
Pending
An action of a node or the cluster that asks for confirmation first.
Report
The result of an action, shown in a popup.
Tab
TokenSort
How the tokens are ordered.
TopicSort
How the topics are ordered.
TopicTab
The views of an open topic.

Constants§

MAX_RECEIVED
The most received messages kept.
TABS
The messages are not a tab: they are one of the views of a topic (Topics › name › Messages).
WINDOWS_MIN
The windows of a chart, in minutes (TUI-MON-03).

Functions§

file_tag
The part of a node id that is safe and distinct in a file name: its last eight letters and digits.
short_id
A node id for tables and messages: its start and its end, since the ids of nodes made together share the start (they are GUID v7, ordered by time).