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

backendgen

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 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 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.

Types

type Config

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

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

Jump to

Keyboard shortcuts

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