Skip to main content

Module resources

Module resources 

Source
Expand description

Process-wide services shared by every plugin instance.

SharedState owns one PluginResources for the process lifetime and threads it through compile_policycreate_plugin → each plugin’s from_config, so plugins can hold handles to shared infrastructure (metrics registry, outbound HTTP client, consumer store, rate-limit counter backends) instead of constructing their own per node or — worse — per request.

Structs§

PluginResources
Handle to process-wide services, injected into plugins at construction.