Skip to main content

Module control

Module control 

Source
Expand description

Loopback control endpoint (minimal HTTP/1.1, no framework).

  • GET /health : open on loopback, lists subservice status.
  • POST /sub/<name>/start : bearer required (HATCHERY_SERVER_CONTROL_TOKEN).
  • POST /sub/<name>/stop : bearer required. The bearer is a node-side credential; agents never receive it.

Functions§

bind
route
serve
serve_with_hub

Type Aliases§

HubHandle
Same as serve, plus the P6 hub routes (/v1/..., bearer required): node calls forwarded by C2, operator mail and tasks.