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 logging;
63pub mod memory_cache;
64pub mod otel;
65pub mod proxy;
66pub mod rate_limit;
67pub mod reload;
68pub mod scoped_circuit_breaker;
69pub mod scoped_rate_limit;
70pub mod routing;
71pub mod scoped_routing;
72pub mod static_files;
73pub mod tls;
74pub mod trace_id;
75pub mod upstream;
76pub mod validation;
77pub mod websocket;
78
79pub use errors::ErrorHandler;
85
86pub use static_files::{CacheStats, CachedFile, FileCache, StaticFileServer};
88
89pub use validation::SchemaValidator;
91
92pub use routing::{RequestInfo, RouteMatch, RouteMatcher};
94pub use scoped_routing::{ScopedRouteMatch, ScopedRouteMatcher};
95
96pub use upstream::{
98 LoadBalancer, PoolConfigSnapshot, PoolStats, RequestContext, TargetSelection, UpstreamPool,
99 UpstreamTarget,
100};
101
102pub use health::{ActiveHealthChecker, PassiveHealthChecker, TargetHealthInfo};
104
105pub use agents::{AgentAction, AgentCallContext, AgentDecision, AgentManager};
107
108pub use reload::{ConfigManager, ReloadEvent, ReloadTrigger, SignalManager, SignalType};
110
111pub use app::AppState;
113
114pub use proxy::SentinelProxy;
116
117pub use builtin_handlers::{
119 execute_handler, BuiltinHandlerState, CachePurgeRequest, TargetHealthStatus, TargetStatus,
120 UpstreamHealthSnapshot, UpstreamStatus,
121};
122
123pub use http_helpers::{
125 extract_request_info, get_or_create_trace_id, write_error, write_json_error, write_response,
126 write_text_error, OwnedRequestInfo,
127};
128
129pub use trace_id::{
131 generate_for_format, generate_tinyflake, generate_uuid, TraceIdFormat, TINYFLAKE_LENGTH,
132};
133
134pub use otel::{
136 create_traceparent, generate_span_id, generate_trace_id, get_tracer, init_tracer,
137 shutdown_tracer, OtelError, OtelTracer, RequestSpan, TraceContext, TRACEPARENT_HEADER,
138 TRACESTATE_HEADER,
139};
140
141pub use tls::{
143 build_server_config, build_upstream_tls_config, load_client_ca, validate_tls_config,
144 validate_upstream_tls_config, CertificateReloader, HotReloadableSniResolver, OcspCacheEntry,
145 OcspStapler, SniResolver, TlsError,
146};
147
148pub use logging::{
150 AccessLogEntry, AccessLogFormat, AuditEventType, AuditLogEntry, ErrorLogEntry, LogManager,
151 SharedLogManager,
152};
153
154pub use rate_limit::{
156 RateLimitConfig, RateLimitManager, RateLimitOutcome, RateLimitResult, RateLimiterPool,
157};
158
159pub use scoped_rate_limit::{ScopedRateLimitManager, ScopedRateLimitResult};
161
162pub use scoped_circuit_breaker::{ScopedBreakerStatus, ScopedCircuitBreakerManager};
164
165pub use geo_filter::{
167 GeoDatabaseWatcher, GeoFilterManager, GeoFilterPool, GeoFilterResult, GeoLookupError,
168};
169
170pub use decompression::{
172 decompress_body, decompress_body_with_stats, is_supported_encoding, parse_content_encoding,
173 DecompressionConfig, DecompressionError, DecompressionResult, DecompressionStats,
174};
175
176#[cfg(feature = "distributed-rate-limit")]
178pub use distributed_rate_limit::{
179 create_redis_rate_limiter, DistributedRateLimitStats, RedisRateLimiter,
180};
181
182#[cfg(feature = "distributed-rate-limit-memcached")]
184pub use memcached_rate_limit::{
185 create_memcached_rate_limiter, MemcachedRateLimitStats, MemcachedRateLimiter,
186};
187
188pub use cache::{
190 configure_cache, get_cache_eviction, get_cache_lock, get_cache_storage, is_cache_enabled,
191 CacheConfig, CacheManager, HttpCacheStats,
192};
193
194pub use memory_cache::{
196 MemoryCacheConfig, MemoryCacheManager, MemoryCacheStats, RouteMatchEntry, TypedCache,
197};
198
199pub use discovery::{
201 ConsulDiscovery, DiscoveryConfig, DiscoveryManager, DnsDiscovery, KubernetesDiscovery,
202};
203
204#[cfg(feature = "kubernetes")]
206pub use kubeconfig::{KubeAuth, Kubeconfig, KubeconfigError, ResolvedKubeConfig};
207
208pub use sentinel_common::errors::{LimitType, SentinelError, SentinelResult};