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§
- Native
Registry - The native filter registry: implementation name -> factory.
Enums§
- Registry
Error - An error from the registry.
Type Aliases§
- Native
Filter Factory - A factory function: given the plugin’s opaque
configstring (fromcrate::config::PluginConfig::config), produce a boxed native filter. The config is the same blob a WASM plugin receives viaproxy_on_configure; a native filter parses it itself (typically JSON or YAML).