Skip to main content

Module node

Module node 

Source
Expand description

IICP provider node — registration, heartbeats, and task serving.

Implements:

  • GET /iicp/health — liveness / capacity (always 200)
  • GET /metrics — Prometheus text (503 if metrics feature absent)
  • POST /v1/task — task handler with concurrency gate (IICP-E021), nonce replay protection (IICP-E011), and W3C traceparent propagation.

Structs§

IicpNode
IICP provider node — handles registration, heartbeats, and task serving.
NodeConfig
Configuration for an IICP provider node.
TaskRequest
TaskResponse

Functions§

derive_native_endpoint
#457 / ADR-040 — derive the native binary transport_endpoint from the HTTP endpoint. They share one host:port (serve() multiplexes both planes on one socket via first-byte detection), so the native URI is the same authority with the iicp scheme (iicpsec for TLS). Authority only — any path on the HTTP endpoint is dropped. Returns None if the endpoint is not http(s).

Type Aliases§

TaskHandlerFn