pub struct HttpServerCapability {
pub bind_addr: String,
pub health_path: String,
pub display_name: String,
}Expand description
Optional per-backend HTTP server capability.
A backend declares HTTP support by setting this field on its
ServiceDefinition. Absence of the field means the backend serves no
HTTP surface; presence is the capability advertisement. v2 uses
structured fields for capabilities rather than the v1 u64 Hello
bitmap (broker/capabilities.rs, frozen forever per #228) so new
capabilities never collide with frozen v1 bit assignments.
Port assignment is NOT carried here. The daemon binds 127.0.0.1:0
at startup and reports its OS-assigned port to the broker via the
existing broker↔daemon control channel (see #483 §2). The fields
below describe what the backend exposes once it has bound a port.
Fields§
§bind_addr: StringLoopback IP the backend will bind. Default 127.0.0.1 when empty.
The broker enforces deploy-time bind policy (env-overridden in
container deployments) so backends that try to bind elsewhere
without authorization are still constrained by the surrounding
environment.
health_path: StringHealth-check path served by the backend. Default /health when
empty. The aggregator polls this to gate the iframe src swap.
display_name: StringHuman-readable label shown in the aggregator selector. Default to the service name when empty.
Trait Implementations§
Source§impl Clone for HttpServerCapability
impl Clone for HttpServerCapability
Source§fn clone(&self) -> HttpServerCapability
fn clone(&self) -> HttpServerCapability
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for HttpServerCapability
impl Debug for HttpServerCapability
Source§impl Default for HttpServerCapability
impl Default for HttpServerCapability
impl Eq for HttpServerCapability
Source§impl Hash for HttpServerCapability
impl Hash for HttpServerCapability
Source§impl Message for HttpServerCapability
impl Message for HttpServerCapability
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.