Extend cc-lb with plugins
Plugins extend request routing and payload handling through Wasmtime hooks. The host validates the uploaded module, reads its metadata, checks hook contracts, and binds it into a runtime chain.
Published contract
Section titled “Published contract”The published crate set contains five crates:
cc-lb-plugin-wirecc-lb-pdk-wasmtime-macroscc-lb-pdk-wasmtimecc-lb-runtime-wasmtimecc-lb-plugin-conformance
The current plugin contract exposes two slots:
- filter keeps or rejects upstream candidates.
- shape builds the upstream-bound request and transforms buffered and SSE responses.
Start with author a plugin and use conformance before uploading an artifact.