Skip to main content

Module stream

Module stream 

Source
Expand description

日志页的日志流:历史加载、SSE 实时追加、向上翻页与滚动跟随。

Structs§

LogRow 🔒
日志行:entry(历史 id>0 / 实时 id=0)或 gap 分隔提示。
LogsStreamPaneProps 🔒
Props for the LogsStreamPane component.
StreamFilter 🔒
挂载时刻的筛选快照:面板按筛选 remount,历史查询、翻页与 SSE 都用同一份。

Enums§

LogRowKind 🔒

Constants§

INITIAL_LIMIT 🔒
首屏历史加载条数。
OLDER_PAGE_LIMIT 🔒
「加载更早」单次翻页条数。

Functions§

LogsStreamPane 🔒
实时日志流面板:历史加载 + SSE 追加 + 向上翻页 + 滚动跟随。
next_row_key 🔒
分配客户端单调行 key(SSE 实时行 id 恒 0,不能用作渲染 key)。
render_row 🔒
渲染一行日志或 gap 分隔提示。