tui

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 28, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package tui implements the bubbletea dashboard for the shardflow client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(sockPath string, defaultRateKbit int, defaultPcapDir string) error

Run blocks running the TUI connected to the daemon at sockPath. If the daemon dies mid-session the TUI does NOT exit — it shows a reconnecting indicator and retries Dial in the background until either the daemon comes back or the user quits.

Lifecycle: on reconnect the old client is closed inside the message handler before the model swaps in the new one, so we never leak FDs. At program exit, p.Run returns the final model — we close whatever client it holds (which is the most recent reconnect, if any happened).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL