status

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: MIT Imports: 12 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.

func FeatureStatusToFeatureInfo added in v0.7.0

func FeatureStatusToFeatureInfo(s types.FeatureStatus) FeatureInfo

FeatureStatusToFeatureInfo converts a types.FeatureStatus to a FeatureInfo.

type LiveInfo

type LiveInfo struct {
	Healthy  bool                  `json:"healthy"`
	Uptime   string                `json:"uptime,omitempty"`
	Features []types.FeatureStatus `json:"features,omitempty"`
}

LiveInfo holds data fetched from a running server.

type StatusInfo

type StatusInfo struct {
	Version        string        `json:"version"`
	Profile        string        `json:"profile"`
	ContextProfile string        `json:"contextProfile,omitempty"`
	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