gwdkanalysis

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2026 License: MPL-2.0 Imports: 9 Imported by: 0

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

func BuildProgram(config gowdk.Config, sources Sources) gwdkir.Program

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).

Types

type Sources added in v0.2.8

type Sources struct {
	Pages      []gwdkir.Page
	Components []gwdkir.Component
	Layouts    []gwdkir.Layout
}

Sources are the parsed IR records one program is assembled from.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL