Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddStandaloneEndpoints ¶ added in v0.2.8
func AddStandaloneEndpoints(program *gwdkir.Program, endpoints []gwdkir.GoEndpoint)
AddStandaloneEndpoints appends discovered standalone Go endpoint declarations to an already-built program: each declaration is preserved losslessly in Program.GoEndpoints and normalized into Program.Endpoints, which is then re-sorted with the same ordering BuildIR produces so post-build discovery yields the same program as build-time discovery.
func AttachBackendBindings ¶ added in v0.2.8
func AttachBackendBindings(program *gwdkir.Program, bindings []source.BackendBinding)
AttachBackendBindings copies backend handler binding records onto the normalized IR endpoints and page load bindings they describe. Records are matched by (kind, page, block, method, route); endpoints and pages without a matching record get a zero binding.
func BuildProgram ¶ added in v0.2.8
BuildProgram assembles the stable compiler IR from parsed IR records: routes, templates, assets, endpoints, and package groupings are derived here. Standalone Go endpoint discovery and backend handler binding enrich the returned program afterwards (compiler.DiscoverGoEndpoints / compiler.BindBackendHandlers).