Skip to main content

Mountain/IPC/Common/
ServiceInfo.rs

1
2//! # Service Discovery and Information
3//!
4//! Tracks every service Mountain talks to: its lifecycle state,
5//! performance counters, dependency graph, and (optionally) a network
6//! endpoint. Used by the in-process service registry to make health-
7//! based routing decisions.
8//!
9//! Layout (one export per file, file name = identity):
10//! - `ServiceState::Enum` - Running / Degraded / Stopped / Error / Starting /
11//!   ShuttingDown.
12//! - `ServicePerformance::Struct` - request/error counters + rolling mean
13//!   response latency.
14//! - `ServiceEndpoint::Struct` - protocol/host/port (+ UDS path).
15//! - `ServiceInfo::Struct` - the per-service descriptor.
16//! - `ServiceRegistry::Struct` - discovery-cadence-aware map keyed by service
17//!   name.
18//!
19//! ## Status
20//!
21//! Zero callers as of 2026-05-02. Pending wire-up from the
22//! gRPC and Tauri IPC dispatch hot paths.
23
24pub mod ServiceEndpoint;
25
26pub mod ServiceInfo;
27
28pub mod ServicePerformance;
29
30pub mod ServiceRegistry;
31
32pub mod ServiceState;