Documentation
¶
Overview ¶
Package server is Console's HTTP layer. It exposes a JSON API over the flag and status engines and a small server-rendered dashboard (htmx) on top of the same App. It owns no business logic: every handler is a thin adapter that decodes a request, calls an engine, and encodes the result.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server wires an App to an http.ServeMux and the dashboard templates. Construct it with New, register routes with Routes, and obtain the wrapped handler with Handler.
func New ¶
New builds a Server over a. It parses the embedded dashboard templates and registers all routes; the returned Server is ready to serve.
func (*Server) ListenAndServe ¶
ListenAndServe serves the dashboard and API on addr until the process exits.