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