Module registry

Module registry 

Source
Expand description

The native filter registry (DW-119).

NativeRegistry maps a registered implementation name to a NativeFilterFactory. Compiled-in filters register themselves at startup (the binary or test calls NativeRegistry::register); the registry is dependency-free – no inventory/linkme, just a function the caller invokes. The unified super::PluginChain looks up a plugin’s native name in the registry to build the per-request filter list.

The registry is Send + Sync (an RwLock<HashMap<...>>) so it can be shared across the dataplane’s worker tasks.

Structs§

NativeRegistry
The native filter registry: implementation name -> factory.

Enums§

RegistryError
An error from the registry.

Type Aliases§

NativeFilterFactory
A factory function: given the plugin’s opaque config string (from crate::config::PluginConfig::config), produce a boxed native filter. The config is the same blob a WASM plugin receives via proxy_on_configure; a native filter parses it itself (typically JSON or YAML).