package
Version:
v1.2.30
Opens a new window with list of versions in this module.
Published: May 10, 2026
License: MIT
Opens a new window with license information.
Imports: 22
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
InitialModel 构建 TUI 初始模型,设定默认焦点和状态。
Run 启动 TUI 模式;如果没有终端,则退回到普通服务模式。
type LogBuffer struct {
}
LogBuffer 用来缓存 TUI 需要展示的实时日志。
NewLogBuffer 创建一个新的日志缓冲区实例。
GetLines 返回当前所有日志副本,避免并发读写冲突。
Write 实现 io.Writer 接口,将日志按行追加到缓冲区,并在超出上限时自动淘汰旧行。
Source Files
¶
Click to show internal directories.
Click to hide internal directories.