Documentation
¶
Overview ¶
Package backendgen emits a self-contained HTTP server bootstrap for Flow applications. The generated file depends only on Flow, Kernel, and transport; the application injects its own compiler bundles at startup.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Generate ¶
func Generate(routes []analyzer.FlowHTTPRoute, config Config) ([]byte, error)
Generate returns formatted Go source for a Flow/Kernel HTTP server bootstrap from NFlow pipeline routes. It remains available for callers that already have a FlowHTTPRoute manifest.
func GenerateFromActions ¶ added in v0.2.0
func GenerateFromActions(actions []analyzer.ActionContract, flowRoutes []analyzer.FlowHTTPRoute, config Config) ([]byte, error)
GenerateFromActions returns a backend bootstrap for actions with explicitly declared HTTP routes. NFlow routes use their compiler resolver names from flowRoutes; Go action routes use their action names from the contracts. It does not invent paths or action implementations.