haproxy-spoa-hub-plugin-api
Plugin API for haproxy-spoa-hub — define HAProxy SPOE agent plugins as independently compiled shared libraries.
Quick start
use *;
define_plugin!;
State belongs on the plugin instance. A hub reload constructs and initializes a
new instance before atomically swapping registries, so failed initialization
cannot mutate the generation that is still serving requests. Use interior
mutability for state changed by process(&self, ...); avoid process-global
mutable statics, which break reload isolation and prevent old generations from
being reclaimed safely.
Your plugin crate must set crate-type = ["cdylib", "rlib"] in Cargo.toml.
For the full guide on writing plugins — including configuration, dependencies, variable scoping, and JSON Schema validation — see Writing a Plugin in the main repository.
License
Apache-2.0