diff options
| author | Paul Buetow <paul@buetow.org> | 2026-02-23 23:52:55 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-02-23 23:52:55 +0200 |
| commit | b79a868fbc85cd7fb2829e978174629ab8a9c986 (patch) | |
| tree | 6d80b9b1a45a43b8d251a518f3538817c34e3165 /internal/tui/messages | |
| parent | 570b7b5d9283b9e443e7da25661e9f2098cc2305 (diff) | |
tui: add top-level model and run entrypoint
Diffstat (limited to 'internal/tui/messages')
| -rw-r--r-- | internal/tui/messages/messages.go | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/internal/tui/messages/messages.go b/internal/tui/messages/messages.go new file mode 100644 index 0000000..35232b9 --- /dev/null +++ b/internal/tui/messages/messages.go @@ -0,0 +1,24 @@ +package messages + +import "ior/internal/statsengine" + +// PidSelectedMsg is emitted when the user selects a PID from the process table. +type PidSelectedMsg struct { + Pid int +} + +// StatsTickMsg carries a fresh immutable snapshot from the stats engine. +type StatsTickMsg struct { + Snap *statsengine.Snapshot +} + +// ExportRequestMsg requests an export of the current UI state. +type ExportRequestMsg struct{} + +// TracingStartedMsg signals that tracing started successfully. +type TracingStartedMsg struct{} + +// TracingErrorMsg reports an error while starting or running tracing. +type TracingErrorMsg struct { + Err error +} |
