Skip to main content

toolkit/runtime/
mod.rs

1mod gear_manager;
2mod grpc_installers;
3mod host_runtime;
4#[cfg(feature = "bootstrap")]
5mod oop_registration;
6#[cfg(feature = "bootstrap")]
7mod oop_serve;
8mod presence_manager;
9mod readiness;
10mod runner;
11mod system_context;
12
13/// Shutdown signal handling utilities
14pub mod shutdown;
15
16#[cfg(test)]
17mod tests;
18
19pub use gear_manager::{
20    Endpoint, GearInstance, GearManager, GrpcServiceNameConflict, InstanceState, ReportedState,
21};
22pub use grpc_installers::{GearInstallers, GrpcInstallerData, GrpcInstallerStore, LateBatch};
23pub use host_runtime::{
24    DEFAULT_INIT_DEADLINE, DEFAULT_SHUTDOWN_DEADLINE, DbOptions, HostRuntime,
25    TOOLKIT_DIRECTORY_ENDPOINT_ENV, TOOLKIT_MODULE_CONFIG_ENV,
26};
27// `DynBearerAuthenticator` / `DynInternalAuthenticator` used to be defined
28// here; they now live in `toolkit_security`, so consumers import them from
29// there rather than through this re-export.
30#[cfg(feature = "bootstrap")]
31pub use oop_serve::OopServeOptions;
32pub use presence_manager::{PresenceManager, ReportedStateSource};
33/// Stays unresolved until the application group's migrations, GTS admission,
34/// initialization and startup complete. The system group serves while it waits.
35pub const PREPARATION_GATE: &str = "application/preparation";
36
37pub use readiness::{
38    DEFAULT_HEALTHCHECK_TIMEOUT, DependencyChecker, ReadinessHealthcheck, ReadinessLifecycle,
39    ReadinessReport, ReadinessState,
40};
41#[cfg(feature = "bootstrap")]
42pub use runner::run_oop_serving;
43pub use runner::{
44    ClientRegistration, OopGearSpawnConfig, OopSpawnOptions, RunOptions, ShutdownOptions, run,
45};
46pub use system_context::SystemContext;