compiler

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompiledEndpoint

type CompiledEndpoint struct {
	MethodAndPath string
	Description   string
	Steps         []parser.ParsedStep
	Rules         CompiledRequestRules
	OpenAPI       *CompiledOpenAPIHandler
}

CompiledEndpoint represents a fully verified and compiled HTTP route.

type CompiledOpenAPIHandler

type CompiledOpenAPIHandler struct {
	UI           string
	Format       string
	SpecURL      string
	Template     string
	TemplateFile string
	BaseDir      string
	Title        string
	Version      string
	Description  string
}

CompiledOpenAPIHandler holds configuration for an endpoint that serves documentation or raw specifications.

type CompiledRequestRules

type CompiledRequestRules struct {
	PathFields   []core.Field
	QueryFields  []core.Field
	HeaderFields []core.Field
	BodyFields   []core.Field
}

CompiledRequestRules holds pre-compiled field validation constraints for an endpoint.

type CompiledService

type CompiledService struct {
	Server      core.Server
	Connections []core.Connection
	Schemas     map[string][]core.Field
	Endpoints   []CompiledEndpoint
}

CompiledService represents the entire statically compiled and verified manifest tree.

func Compile

func Compile(manifest *parser.Manifest, evalCtx *hcl.EvalContext) (*CompiledService, error)

Compile performs static semantic analysis on the entire AST manifest tree. It verifies all connection and schema references and returns a ready-to-run CompiledService.

Jump to

Keyboard shortcuts

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