1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
// SPDX-License-Identifier: Apache-2.0
// Copyright (c) 2024 Praxis Contributors
//! Core configuration, error types, and server factory for Praxis.
//!
//! `praxis-core` is the leaf of the crate dependency flow
//! `server -> protocol -> filter -> core -> tls`: it depends only on
//! [`praxis_tls`] and is depended on by every other Praxis crate. It
//! exists to give the filter, protocol, and server layers a single
//! source of truth for what a valid proxy looks like, so a parsed
//! configuration can be treated as already well-formed downstream.
//!
//! Responsibilities:
//! - YAML configuration parsing and validation with serde ([`config`]).
//! - Error types shared across the workspace ([`errors`], re-exported as [`ProxyError`]).
//! - Health state for active health checking ([`health`]) and the key-value store trait and registry ([`kv`]).
//! - The Pingora-backed server factory and runtime options ([`PingoraServerRuntime`], [`RuntimeOptions`]) plus tracing
//! setup ([`TracingGuard`], [`logging`]).
//!
//! Configuration types validate at load time, upholding the invariant
//! that higher layers never re-check structural validity of a [`config`]
//! value they receive.
/// Circuit breaker state machine for sub-request fault isolation.
/// YAML configuration parsing and validation.
/// Upstream connection options and endpoint types.
/// Error types shared across the workspace.
/// Process-wide file descriptor pressure monitoring.
/// Shared gRPC protocol utilities.
/// Shared health state types for active health checking.
/// Per-instance request ID generation.
/// Key-value store trait and registry.
/// Tracing subscriber setup.
/// Process-wide memory pressure monitoring.
/// Reserved internal header prefixes for proxy-internal metadata.
/// Shared retry budget and per-cluster active-request tracking.
/// Server factory and runtime options.
/// Shared HTTP connector for sub-request execution.
/// Wall-clock time abstraction for filters.
pub use ProxyError;
pub use TracingGuard;
pub use ;