A0: contract stubs types, transport, fake and registry seams

Land the shared peer contracts: types, error mapping, transport trait,
fake transport and fixtures, registry/proxy/health skeletons, the
AppState.peers and Config.peers seams, the ping and peers route stubs,
and unit plus integration tests. No loops, no network, feature off by
default.
This commit is contained in:
ari committed 2026-10-19 20:02:17 -04:00
1 parent 746b389a2b
commit 4bfb097be6
22 files changed
+1781 -1

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
//! Peers: a consolidator's view of other `slinuxm` instances.
//!
//! Configuration is declarative; nothing in this module writes to a peer or
//! to the host. The registry read side is lock-light because REST, MCP and
//! metrics render status on every scrape.
pub mod error;
pub mod health;
pub mod proxy;
pub mod registry;
pub mod testing;
pub mod transport;
pub mod types;
pub use error::PeerError;
pub use registry::{PeerRegistry, ProxyOpts};
pub use types::{PeerConfig, PeerName, PeerStatus, PeersConfig, Secret};