Skip to main content

Module factories

Module factories 

Source
Expand description

Service factory functions for inventory-based registration.

This module contains all #[service_factory] decorated functions that automatically register services with the inventory system.

§Pattern

Same pattern as:

  • #[register_scopes] for authorization scopes
  • DriverFactory in git2db for storage drivers

§Usage

ⓘ
use hyprstream_rpc::service::{get_factory, ServiceContext};

let ctx = ServiceContext::new(...);
let factory = get_factory("policy").unwrap();
let spawnable = (factory.factory)(&ctx)?;
manager.spawn(spawnable).await?;

Enums§

PdsBootState
The lifecycle state of the checkpointed PDS store, as seen by the QUIC startup gate.

Functions§

classify_pds_store_for_quic
Classify the checkpointed PDS store for the QUIC startup gate.
current_native_announcement
Rebuild one running service’s announcement from a fresh checkpoint read and the latest registered JWT. No stale authority is returned on failure.
with_checkpointed_native_announcements
Populate every ordinary network service announcement from a fresh checkpoint-verifying PDS read. Missing or ambiguous state fails startup before any QUIC service can bind and advertise an incomplete bundle.