Expand description
Embedded HTTP server.
environmentd embeds an HTTP server for introspection into the running process. At the moment, its primary exports are Prometheus metrics, heap profiles, and catalog dumps.
Modulesยง
- catalog ๐
- Catalog introspection HTTP endpoints.
- console ๐
- Console Impersonation HTTP endpoint.
- memory ๐
- metrics ๐
- Metrics tracked for
environmentd
s HTTP servers. - probe ๐
- Health check HTTP endpoints.
- prometheus ๐
- root ๐
- HTTP endpoints for the homepage and static files.
- sql ๐
- webhook ๐
- Helpers for handling events from a Webhook source.
Structsยง
- Authed
Client - Authed
User - Http
Config - Http
Server - Internal
Route Config - Login
Credentials - Metrics
- SqlResponse
- The response to a
SqlRequest
. - Tower
Session Data - Webhook
State - WsState
Enumsยง
- Auth
Error ๐ - Conn
Protocol ๐ - Credentials ๐
- WebSocket
Auth - WebSocket
Response
Constantsยง
- MAX_
REQUEST_ SIZE - Maximum allowed size for a request.
- SESSION_
DURATION ๐
Traitsยง
- Default
Layers ๐ - Default layers that should be applied to all routes, and should get applied to both the internal http and external http routers.
Functionsยง
- auth ๐
- check_
role_ ๐allowed - handle_
leader_ promote - handle_
leader_ skip_ catchup - handle_
leader_ status - handle_
load_ ๐error - Glue code to make
tower
work withaxum
. - handle_
login - handle_
logout - http_
auth ๐ - init_ws ๐
- x_
materialize_ ๐user_ header_ auth
Type Aliasesยง
- Delayed ๐