Skip to main content

Module protocol_v2

Module protocol_v2 

Source
Expand description

v2 broker protocol module.

Houses the prost-generated types for the running_process.broker.v2 package — currently the ServiceDefinition envelope and the HttpServerCapability optional sub-message introduced in #483.

v2 runs in parallel with v1 (super::protocol) through the broker v2 rollout; v1’s types are FROZEN FOREVER (#228) so all new capability fields land here instead.

Structs§

BackendHttpReady
Notification frame sent from a daemon to its broker once the daemon’s HTTP server has bound a port. port is u16 in Rust; proto’s narrowest integer is uint32 so the wire type is uint32 and the broker validates the range on receipt.
GetBrokerHttpEndpointRequest
CLI→broker request for the broker’s own HTTP endpoint. Empty marker — no fields are necessary; the broker fronts exactly one HTTP server.
GetBrokerHttpEndpointResponse
Broker→CLI response carrying the resolved HTTP endpoint. port is the port the broker is currently bound on (after env-override / config resolution per #483 §3); pid is the broker’s process id, included so a mid-restart consumer can distinguish a stale answer from a live one without needing a separate liveness probe.
HttpServerCapability
Optional per-backend HTTP server capability.
ServiceDefinition
v2 service definition envelope.