Skip to main content

hydracache_server/
lib.rs

1//! Standalone HydraCache server bootstrap primitives.
2//!
3//! The crate keeps the first production daemon surface framework-neutral where
4//! possible: configuration, validation, readiness, and graceful drain can be
5//! tested without binding sockets. The binary wrapper wires these primitives to
6//! process startup.
7
8pub mod admin_http;
9pub mod bootstrap;
10pub mod cluster_status;
11pub mod config;
12mod grid_host;
13pub mod redis_tcp;
14pub mod services;
15pub mod upgrade;
16
17pub use admin_http::{
18    AdminHttpError, AdminHttpSurface, ADMIN_ACTUATOR_PATH, ADMIN_BACKUP_PATH,
19    ADMIN_CLUSTER_OVERVIEW_PATH, ADMIN_CONSOLE_PATH, ADMIN_DRAIN_PATH, ADMIN_HEALTHZ_PATH,
20    ADMIN_METRICS_PATH, ADMIN_READYZ_PATH, ADMIN_RESHARD_PATH, ADMIN_STATUS_PATH,
21};
22pub use bootstrap::{
23    RedisSurfaceDrain, ServerAdminAction, ServerAdminActionError, ServerAdminStatus, ServerHealth,
24    ServerObservabilityModel, ServerReadiness, ServerRuntime, ServerState,
25};
26pub use cluster_status::{
27    ClusterStatus, ClusterStatusProvider, ClusterStatusRuntime, GridControlPlaneHandle,
28    LiveClusterStatus, MemberRole, MemberStatus, ModeledClusterStatus, Reachability, ReshardPhase,
29    StatusSource,
30};
31pub use config::{
32    AdminApiConfig, BackupConfig, ClientApiConfig, ClusterAuthConfig, ClusterStartMode,
33    RedisApiConfig, ServerConfig, ServerConfigError, ServerRole, TlsConfig,
34};
35pub use redis_tcp::{serve_redis_listener, RedisTcpError, RedisTlsAcceptor, RedisTlsError};
36pub use services::{DrainOutcome, GracefulShutdown, ServiceSet};
37pub use upgrade::{
38    GracefulUpgrade, UpgradeError, UpgradePhase, UpgradePlan, UpgradeReport, UpgradeStrategy,
39};