Skip to main content

Mountain/IPC/Common/
ServiceInfo.rs

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