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::{Endpoint, GearInstance, GearManager, InstanceState};
19pub use grpc_installers::{GearInstallers, GrpcInstallerData, GrpcInstallerStore};
20pub use host_runtime::{
21    DEFAULT_SHUTDOWN_DEADLINE, DbOptions, HostRuntime, TOOLKIT_DIRECTORY_ENDPOINT_ENV,
22    TOOLKIT_MODULE_CONFIG_ENV,
23};
24#[cfg(feature = "bootstrap")]
25pub use oop_registration::ResolvedRestEndpoints;
26#[cfg(feature = "bootstrap")]
27pub use oop_serve::{DynBearerAuthenticator, DynInternalAuthenticator, OopServeOptions};
28pub use readiness::{
29    DEFAULT_HEALTHCHECK_TIMEOUT, ReadinessLifecycle, ReadinessReport, ReadinessState,
30};
31#[cfg(feature = "bootstrap")]
32pub use runner::run_oop_serving;
33pub use runner::{
34    ClientRegistration, OopGearSpawnConfig, OopSpawnOptions, RunOptions, ShutdownOptions, run,
35};
36pub use system_context::SystemContext;