surface

package
v1.19.1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package surface defines honest loading and availability state for TUI views.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type State

type State struct {
	Status Status
	Reason string
}

State describes one independently refreshed Protocol surface.

func (State) Label

func (s State) Label() string

Label returns a non-empty honest operator label.

func (State) Ready

func (s State) Ready() bool

Ready reports whether canonical rows may be rendered. Partial data is useful but must retain its partial label.

type Status

type Status string

Status distinguishes unavailable data from an authoritative empty result.

const (
	Loading     Status = "loading"
	Loaded      Status = "loaded"
	Partial     Status = "partial"
	Unavailable Status = "unavailable"
	Failed      Status = "error"
)

Jump to

Keyboard shortcuts

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