1#![allow(dead_code)]
3#![allow(unused_variables)]
4#![allow(unused_imports)]
5#![allow(clippy::too_many_arguments)]
6#![allow(clippy::match_like_matches_macro)]
7#![allow(clippy::manual_strip)]
8#![allow(clippy::only_used_in_recursion)]
9#![allow(clippy::type_complexity)]
10#![allow(clippy::manual_try_fold)]
11#![allow(private_interfaces)]
12
13pub mod agents;
46pub mod app;
47pub mod builtin_handlers;
48pub mod cache;
49pub mod decompression;
50pub mod discovery;
51pub mod distributed_rate_limit;
52pub mod memcached_rate_limit;
53pub mod errors;
54
55#[cfg(feature = "kubernetes")]
57pub mod kubeconfig;
58pub mod geo_filter;
59pub mod grpc_health;
60pub mod health;
61pub mod http_helpers;
62pub mod inference;
63pub mod logging;
64pub mod memory_cache;
65pub mod otel;
66pub mod proxy;
67pub mod rate_limit;
68pub mod reload;
69pub mod scoped_circuit_breaker;
70pub mod scoped_rate_limit;
71pub mod routing;
72pub mod scoped_routing;
73pub mod shadow;
74pub mod static_files;
75pub mod tls;
76pub mod trace_id;
77pub mod upstream;
78pub mod validation;
79pub mod websocket;
80
81pub use errors::ErrorHandler;
87
88pub use static_files::{CacheStats, CachedFile, FileCache, StaticFileServer};
90
91pub use validation::SchemaValidator;
93
94pub use routing::{RequestInfo, RouteMatch, RouteMatcher};
96pub use scoped_routing::{ScopedRouteMatch, ScopedRouteMatcher};
97
98pub use upstream::{
100 LoadBalancer, PoolConfigSnapshot, PoolStats, RequestContext, ShadowTarget, TargetSelection,
101 UpstreamPool, UpstreamTarget,
102};
103
104pub use health::{ActiveHealthChecker, PassiveHealthChecker, TargetHealthInfo};
106
107pub use agents::{AgentAction, AgentCallContext, AgentDecision, AgentManager};
109
110pub use reload::{ConfigManager, ReloadEvent, ReloadTrigger, SignalManager, SignalType};
112
113pub use app::AppState;
115
116pub use proxy::SentinelProxy;
118
119pub use builtin_handlers::{
121 execute_handler, BuiltinHandlerState, CachePurgeRequest, TargetHealthStatus, TargetStatus,
122 UpstreamHealthSnapshot, UpstreamStatus,
123};
124
125pub use http_helpers::{
127 extract_request_info, get_or_create_trace_id, write_error, write_json_error, write_response,
128 write_text_error, OwnedRequestInfo,
129};
130
131pub use trace_id::{
133 generate_for_format, generate_tinyflake, generate_uuid, TraceIdFormat, TINYFLAKE_LENGTH,
134};
135
136pub use otel::{
138 create_traceparent, generate_span_id, generate_trace_id, get_tracer, init_tracer,
139 shutdown_tracer, OtelError, OtelTracer, RequestSpan, TraceContext, TRACEPARENT_HEADER,
140 TRACESTATE_HEADER,
141};
142
143pub use tls::{
145 build_server_config, build_upstream_tls_config, load_client_ca, validate_tls_config,
146 validate_upstream_tls_config, CertificateReloader, HotReloadableSniResolver, OcspCacheEntry,
147 OcspStapler, SniResolver, TlsError,
148};
149
150pub use logging::{
152 AccessLogEntry, AccessLogFormat, AuditEventType, AuditLogEntry, ErrorLogEntry, LogManager,
153 SharedLogManager,
154};
155
156pub use rate_limit::{
158 RateLimitConfig, RateLimitManager, RateLimitOutcome, RateLimitResult, RateLimiterPool,
159};
160
161pub use scoped_rate_limit::{ScopedRateLimitManager, ScopedRateLimitResult};
163
164pub use scoped_circuit_breaker::{ScopedBreakerStatus, ScopedCircuitBreakerManager};
166
167pub use shadow::{buffer_request_body, clone_body_for_shadow, should_buffer_method, ShadowManager};
169
170pub use geo_filter::{
172 GeoDatabaseWatcher, GeoFilterManager, GeoFilterPool, GeoFilterResult, GeoLookupError,
173};
174
175pub use decompression::{
177 decompress_body, decompress_body_with_stats, is_supported_encoding, parse_content_encoding,
178 DecompressionConfig, DecompressionError, DecompressionResult, DecompressionStats,
179};
180
181#[cfg(feature = "distributed-rate-limit")]
183pub use distributed_rate_limit::{
184 create_redis_rate_limiter, DistributedRateLimitStats, RedisRateLimiter,
185};
186
187#[cfg(feature = "distributed-rate-limit-memcached")]
189pub use memcached_rate_limit::{
190 create_memcached_rate_limiter, MemcachedRateLimitStats, MemcachedRateLimiter,
191};
192
193pub use cache::{
195 configure_cache, get_cache_eviction, get_cache_lock, get_cache_storage, is_cache_enabled,
196 CacheConfig, CacheManager, HttpCacheStats,
197};
198
199pub use memory_cache::{
201 MemoryCacheConfig, MemoryCacheManager, MemoryCacheStats, RouteMatchEntry, TypedCache,
202};
203
204pub use discovery::{
206 ConsulDiscovery, DiscoveryConfig, DiscoveryManager, DnsDiscovery, KubernetesDiscovery,
207};
208
209#[cfg(feature = "kubernetes")]
211pub use kubeconfig::{KubeAuth, Kubeconfig, KubeconfigError, ResolvedKubeConfig};
212
213pub use sentinel_common::errors::{LimitType, SentinelError, SentinelResult};