Help us shape the future of Go! Take the 2026 Go Developer Survey

dashboard

package
v1.37.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package dashboard resolves the address the lerd web UI is opened at.

Index

Constants

View Source
const (
	// VhostURL is where the dashboard normally lives: the nginx-proxied vhost,
	// so it shows up under a name rather than a bare IP:port.
	VhostURL = "http://lerd.localhost"
	// DirectURL is lerd-ui's own port. nginx is a container `lerd stop` stops,
	// so this is the only address that still answers on a stopped stack.
	DirectURL = "http://127.0.0.1:7073"
)

Variables

This section is empty.

Functions

func Serving

func Serving() bool

Serving reports whether the stack is up, by asking the vhost for the dashboard page. nginx is a container `lerd stop` stops, so a vhost that does not answer means lerd is down.

func URL

func URL() string

URL returns the address to open. It prefers the vhost and falls back to lerd-ui's own port when nginx is not serving, which is what lets "open the dashboard" land on a working page while lerd is stopped.

Types

This section is empty.

Jump to

Keyboard shortcuts

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