Help us shape the future of Go! Take the 2026 Go Developer Survey

backendgen

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

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. It mounts only HTTP routes found in .nflow @pipeline declarations. The generated function accepts application bundles, an optional mux configurator (for a UI or other app-owned handlers), and standard net/http middleware.

Types

type Config

type Config struct {
	PackageName      string
	FunctionName     string
	ExcludePipelines []string
}

Config controls the generated Go package and the set of mounted Flow routes.

Jump to

Keyboard shortcuts

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