From b79a868fbc85cd7fb2829e978174629ab8a9c986 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Mon, 23 Feb 2026 23:52:55 +0200 Subject: tui: add top-level model and run entrypoint --- internal/tui/msg.go | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'internal/tui/msg.go') diff --git a/internal/tui/msg.go b/internal/tui/msg.go index ba2ec53..c69e806 100644 --- a/internal/tui/msg.go +++ b/internal/tui/msg.go @@ -1,24 +1,18 @@ package tui -import "ior/internal/statsengine" +import "ior/internal/tui/messages" // PidSelectedMsg is emitted when the user selects a PID from the process table. -type PidSelectedMsg struct { - Pid int -} +type PidSelectedMsg = messages.PidSelectedMsg // StatsTickMsg carries a fresh immutable snapshot from the stats engine. -type StatsTickMsg struct { - Snap *statsengine.Snapshot -} +type StatsTickMsg = messages.StatsTickMsg // ExportRequestMsg requests an export of the current UI state. -type ExportRequestMsg struct{} +type ExportRequestMsg = messages.ExportRequestMsg // TracingStartedMsg signals that tracing started successfully. -type TracingStartedMsg struct{} +type TracingStartedMsg = messages.TracingStartedMsg // TracingErrorMsg reports an error while starting or running tracing. -type TracingErrorMsg struct { - Err error -} +type TracingErrorMsg = messages.TracingErrorMsg -- cgit v1.2.3