Skip to main content

Module engine

Module engine 

Source
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§

CompiledGraph
A compiled, ready-to-execute graph with instantiated plugins.

Functions§

compile_policy
Compiles a PolicyConfig into a ready-to-execute CompiledGraph.
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.