Documentation
¶
Overview ¶
Package httpd is the HTTP server under a tool's routes: it listens, answers a health check, and on stop lets requests under way finish. An MCP server and a metrics page each serve through it.
Index ¶
Constants ¶
View Source
const ( // HealthPath answers "ok" while the tool is serving, whatever state the thing it works on is in: a container is not unhealthy because what it // watches is down. HealthPath = "/healthz" )
Variables ¶
This section is empty.
Functions ¶
func Listen ¶
Listen takes the address to serve on, ":8080" say, before anything is served, so a tool can say where it is serving: a port of 0 is one picked for it. An address that cannot be listened on is an error naming it.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.