pub struct RegisterServiceParams {
pub name: String,
pub backend: BackendSpec,
pub allow: Vec<String>,
pub ephemeral: bool,
pub rate_limit_per_min: Option<u32>,
}Expand description
Params of Request::RegisterService: the [services.*] entry to write/update.
Fields§
§name: String§backend: BackendSpec§allow: Vec<String>§ephemeral: boolWhen true (#36), the registration is EPHEMERAL: kept in daemon memory only, never written
to the on-disk config, and automatically unregistered when the control connection that
registered it closes (and gone on daemon restart). For an embedder that serves a
socket backend from a fresh path each run, this removes the need to derive a stable
socket path solely to keep a persisted registration valid, and the stale-registration
accumulation that comes with no unregister. Default false = the persistent behavior.
rate_limit_per_min: Option<u32>Per-service proxied-request rate (#63), falling back to [limits].rate_limit_per_min.
CLAMPED, never honoured upward. [limits].rate_limit_per_min is a hard ceiling: a
larger value here is reduced to it, so a control call cannot uncap a service. Before #63
every service a peer could reach drew from one shared bucket, so a noisy service starved a
quiet one; buckets are now per (service, endpoint).
0 is rejected rather than silently blocking every request. api_minor >= 40.
Trait Implementations§
Source§impl Clone for RegisterServiceParams
impl Clone for RegisterServiceParams
Source§fn clone(&self) -> RegisterServiceParams
fn clone(&self) -> RegisterServiceParams
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more