Documentation
¶
Overview ¶
Package httpapi provides an optional HTTP transport adapter for agentwatch.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
NewHandler returns an http.Handler that serves the agentwatch HTTP API. Routes:
GET /sessions — list all sessions (Snapshot)
GET /sessions/{id} — single session by ID (404 if not found)
GET /healthz — source health status
GET /sources — registered source names
All responses are JSON with Content-Type: application/json. The optional privacy policy is applied to every session response.
Types ¶
Click to show internal directories.
Click to hide internal directories.