Skip to main content

Module config_store

Module config_store 

Source
Expand description

Configuration source abstraction.

Decides where the gateway’s routes/policies/consumers are loaded from and how Admin API mutations are persisted. FileConfigStore is the default, stateless source (reads gateway.yaml, applies edits in memory). The etcd feature adds [EtcdConfigStore] for shared config delivery across an HA cluster — every instance watches the same etcd prefix and converges on changes. Both sit behind the ConfigStore trait so main and the Admin API are backend-agnostic.

Modules§

etcd
etcd-backed config store for HA clustering.

Structs§

FileConfigStore
File-backed config store: loads gateway.yaml and applies Admin mutations in memory. The on-disk file is not rewritten (matching the original behavior — edits are live but not persisted to the file). Stateless, single-node; the default when config.source is file or unset.

Traits§

ConfigStore
A source of gateway configuration and the sink for Admin API mutations.