status

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package status implements the lango status command — a unified status dashboard.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStatusCmd

func NewStatusCmd(bootLoader func() (*bootstrap.Result, error)) *cobra.Command

NewStatusCmd creates the status command.

Types

type FeatureInfo

type FeatureInfo struct {
	Name    string `json:"name"`
	Enabled bool   `json:"enabled"`
	Detail  string `json:"detail,omitempty"`
}

FeatureInfo describes a feature's status.

type LiveInfo

type LiveInfo struct {
	Healthy bool   `json:"healthy"`
	Uptime  string `json:"uptime,omitempty"`
}

LiveInfo holds data fetched from a running server.

type StatusInfo

type StatusInfo struct {
	Version    string        `json:"version"`
	Profile    string        `json:"profile"`
	ServerUp   bool          `json:"serverUp"`
	Gateway    string        `json:"gateway"`
	Provider   string        `json:"provider"`
	Model      string        `json:"model"`
	Features   []FeatureInfo `json:"features"`
	Channels   []string      `json:"channels"`
	ServerInfo *LiveInfo     `json:"serverInfo,omitempty"`
}

StatusInfo holds all collected status data.

Jump to

Keyboard shortcuts

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