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.
Click to show internal directories.
Click to hide internal directories.