Documentation
¶
Overview ¶
Package readiness answers "can the server I just launched actually be reached yet?" for every entry point that starts one (start, restart, open, the TUI). A bound lock file or a forked process proves nothing: the URL a launcher prints is only honest once the HTTP health endpoint answers.
Index ¶
Constants ¶
const HealthPath = "/api/v1/info/health"
HealthPath is the unauthenticated endpoint a ready server answers 200 on.
Variables ¶
This section is empty.
Functions ¶
func ProbeURL ¶
ProbeURL returns the health URL for a server bound to host:port. A wildcard or empty host (the CLI binds every interface by default) is probed through localhost, since the wildcard address is not dialable on every platform.
Types ¶
type ExitedError ¶
type ExitedError struct {
Err error
}
ExitedError means the server process ended before it became ready. Err is the process's exit status or the error its Start returned (may be nil).
func (*ExitedError) Error ¶
func (e *ExitedError) Error() string
func (*ExitedError) Unwrap ¶
func (e *ExitedError) Unwrap() error
type TimeoutError ¶
TimeoutError means the server never answered the health endpoint.
func (*TimeoutError) Error ¶
func (e *TimeoutError) Error() string