Documentation
¶
Overview ¶
Package localruntime starts the per-user Lectern control plane used by the local CLI. It deliberately keeps its state away from the checkout so a fresh install can run without a hosted server or a configured target.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Endpoint ¶
type Endpoint struct {
URL string `json:"url"`
Token string `json:"token"`
Instance string `json:"instance"`
PID int `json:"pid"`
StartedAt string `json:"started_at"`
Build version.Info `json:"build"`
TmuxDir string `json:"tmux_dir"`
}
func Peek ¶ added in v2.4.0
Peek reports the local runtime's endpoint, token included, if one is already healthy — without starting one. Unlike StatusOf (whose Endpoint has the token stripped for safe display), a caller here is about to make authenticated requests, e.g. `lectern doctor`'s live checks. It never starts a new engine; that's Ensure's job.