Skip to main content

Module runtime_config

Module runtime_config 

Source
Expand description

Layered, console-editable configuration overlaid on the static AppConfig.

Domains and platform crates declare typed RuntimeConfigDescriptors; a RuntimeConfigRegistry aggregates them; later tasks add the snapshot and provider that resolve effective values from defaults plus stored overrides.

Re-exports§

pub use store::RuntimeConfigAuditEntry;
pub use store::StoredRuntimeConfig;

Modules§

generated
store

Structs§

PostgresRuntimeConfigProvider
Database-backed runtime-config provider. Holds an atomically swappable snapshot resolved from the registry plus stored overrides for one running service.
RuntimeConfigCell
Shared, atomically swappable snapshot cell used by the Postgres provider and its background refresh task (Task 5).
RuntimeConfigDescriptor
A single declared, typed, editable configuration key.
RuntimeConfigGroupDescriptor
Presentation metadata for a set of related config keys.
RuntimeConfigRegistry
An immutable, validated set of descriptors indexed by (service_key, key).
RuntimeConfigSnapshot
Effective configuration for a single running service: every registered key resolved to a concrete value plus the source it came from.
StaticRuntimeConfigProvider
Defaults-only provider for tests, the migrate app, and any context without a database-backed configuration source.

Enums§

RuntimeConfigGeneratedValue
A value that the config backend may initialize when its condition becomes true.
RuntimeConfigScope
Which running service a config value applies to. Shared is stored under the reserved service key * and used as a fallback for every service.
RuntimeConfigSource
Where an effective value came from, for display in the console.
RuntimeConfigType
The type and constraints of a config value. Drives write validation and the console edit control.
RuntimeConfigVisibilityCondition
A declarative visibility condition for console presentation.

Constants§

CONFIG_NOTIFY_CHANNEL
The channel name used for cross-instance config-change notifications.

Traits§

RuntimeConfigProvider
Read access to the current effective configuration for this service.