tui

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, cat *catalog.File) error

Run is the cat9s screen. It needs a terminal; the caller checks that.

Types

type Loader

type Loader interface {
	Prepare(ctx context.Context) (probePrep, error)
	Probe(ctx context.Context, prep probePrep, s catalog.Service) Row
}

Loader fetches probes. Prepare runs once per pass; Probe runs per service so the table can paint each row as it finishes.

type Row

type Row struct {
	Service  catalog.Service
	Report   lifecycle.Report
	Serve    string
	URL      string
	Owned    bool
	Fresh    bool
	Launches []lifecycle.LaunchStatus
}

Row is one catalog service plus the latest probe.

type Runner

type Runner interface {
	Stop(ctx context.Context, name string) (string, error)
	Restart(ctx context.Context, name string) (string, error)
	RestartAll(ctx context.Context, names []string) (string, error)
}

Runner stops and restarts local processes. It does not publish. Restart starts a service that is down.

Jump to

Keyboard shortcuts

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