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

+3
View File
@@ -15,6 +15,8 @@ use figment::providers::{Env, Format, Serialized, Toml};
use figment::Figment;
use serde::{Deserialize, Serialize};
use crate::peers::PeersConfig;
/// Default config file location, used only when it exists and `--config` is absent.
pub const DEFAULT_CONFIG_PATH: &str = "/etc/skyg-linux-tracker.toml";
/// Environment variable prefix.
@@ -28,6 +30,7 @@ pub struct Config {
pub otel: OtelConfig,
pub sources: SourcesConfig,
pub limits: LimitsConfig,
pub peers: PeersConfig,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]