services

package
v1.19.0 Latest Latest
Warning

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

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

Documentation

Overview

Package services renders the services health indicator in the status bar.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	// contains filtered or unexported fields
}

Model renders the catalog health: dot color + service count + cost.

func New

func New(theme styles.Theme, scope log.Scope) *Model

New creates a new catalog status model.

func (*Model) CloseDetail added in v1.17.0

func (m *Model) CloseDetail()

CloseDetail exits the detail sub-view, returning to the service list.

func (*Model) CompactView

func (m *Model) CompactView() string

CompactView renders the catalog indicator for the statusbar.

func (*Model) ExpandedView

func (m *Model) ExpandedView(width, height int) string

ExpandedView renders the detailed catalog status for the drawer.

func (*Model) HandleKeyPress added in v1.17.0

func (m *Model) HandleKeyPress(msg tea.KeyPressMsg) tea.Cmd

HandleKeyPress handles keyboard navigation in the expanded drawer view.

func (*Model) HasData

func (m *Model) HasData() bool

HasData returns true when catalog data has been loaded.

func (*Model) InDetail added in v1.17.0

func (m *Model) InDetail() bool

InDetail returns true when the detail sub-view is active.

func (*Model) Init

func (m *Model) Init() tea.Cmd

Init starts polling.

func (*Model) SetDB

func (m *Model) SetDB(db sqlite.DB) tea.Cmd

SetDB sets the database and starts polling.

func (*Model) Update

func (m *Model) Update(msg tea.Msg) tea.Cmd

Update handles messages.

Jump to

Keyboard shortcuts

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