Documentation
¶
Index ¶
- func ClearState() error
- func ForceStop(state State)
- func ForceStopPID(pid int)
- func LogPath() (string, error)
- func QuotaErrorFromBodyForTest(status string, body []byte) string
- func Run(ctx context.Context, options Options) error
- func SaveState(state State) error
- func StatePath() (string, error)
- type Health
- type Options
- type QuotaBarForTest
- type ReachableAddress
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearState ¶ added in v2026.909.0
func ClearState() error
func ForceStop ¶ added in v2026.909.0
func ForceStop(state State)
ForceStop terminates the server and, when present, its separately managed Vite process group. Detached Solomon and Vite commands are process-group leaders, while a foreground "server run" may share its terminal's group; forceStopProcess handles both cases without killing an unrelated shell.
func ForceStopPID ¶ added in v2026.909.0
func ForceStopPID(pid int)
func QuotaErrorFromBodyForTest ¶ added in v2026.924.0
Types ¶
type QuotaBarForTest ¶ added in v2026.924.0
QuotaBarForTest is a narrow test view of a provider quota bar.
func QuotaBarsForTest ¶ added in v2026.924.0
func QuotaBarsForTest(payload any, kind string) []QuotaBarForTest
QuotaBarsForTest exposes the pure parser to external package tests.
type ReachableAddress ¶ added in v2026.909.0
type State ¶ added in v2026.909.0
type State struct {
PID int `json:"pid"`
URL string `json:"url"`
LocalURL string `json:"localhost_url"`
Addresses []ReachableAddress `json:"addresses,omitempty"`
StartedAt time.Time `json:"started_at"`
Version string `json:"version"`
Mode string `json:"mode"`
Vite string `json:"vite"`
ViteURL string `json:"vite_url,omitempty"`
VitePID int `json:"vite_pid,omitempty"`
DevDir string `json:"dev_directory,omitempty"`
GOOS string `json:"goos"`
GoVersion string `json:"go_version"`
}