Expand description
Policy compilation and graph execution.
Turns a PolicyConfig (nodes + from/to edges from gateway.yaml)
into a CompiledGraph with instantiated plugins, then walks that graph
per request: success edges on Ok, error edges (or the policy-level
catch-all handler) on failure, stopping at terminal client nodes.
Structs§
- Compiled
Graph - A compiled, ready-to-execute graph with instantiated plugins.
Functions§
- compile_
policy - Compiles a
PolicyConfiginto a ready-to-executeCompiledGraph. - parse_
edge_ 🔒endpoint - Parses
"node_id.port"into(node_id, port), defaulting the port to"out"when no dot is present. Splits on the last dot, so node IDs may themselves contain dots.