Documentation
¶
Overview ¶
Package hclapi provides a declarative, embeddable API runtime engine.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultErrorHandler = core.DefaultErrorHandler
DefaultErrorHandler returns a ProblemDetails with default values.
Functions ¶
This section is empty.
Types ¶
type ContextOption ¶
type ContextOption = core.ContextOption
ContextOption configures optional behavior during Context creation.
type ErrorHandler ¶
type ErrorHandler = core.ErrorHandler
ErrorHandler defines the contract for customizing API error serialization.
type InvalidParam ¶
type InvalidParam = core.InvalidParam
InvalidParam represents a single field validation failure.
type ProblemDetailsError ¶
type ProblemDetailsError = core.ProblemDetailsError
ProblemDetailsError represents an RFC 9457 compliant error object.
type RequestState ¶
type RequestState = core.RequestState
RequestState represents normalized HTTP request metadata extracted at runtime.
type StepHandler ¶
type StepHandler = core.StepHandler
StepHandler defines the signature for custom native Go step callbacks.
type StepResult ¶
type StepResult = core.StepResult
StepResult represents arbitrary step-specific outputs.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
hclapi
command
|
|
|
examples
|
|
|
05_go_embedded
command
|
|
|
internal
|
|
|
engine
Package engine provides route binding, HTTP multiplexing, and pipeline initialization.
|
Package engine provides route binding, HTTP multiplexing, and pipeline initialization. |
|
eval
Package eval translates runtime core.Context data into HCL EvalContext structures and dynamically evaluates HCL AST expressions back into Go primitives.
|
Package eval translates runtime core.Context data into HCL EvalContext structures and dynamically evaluates HCL AST expressions back into Go primitives. |
|
steps/xrespond
Package xrespond serializes payloads and writes final HTTP headers and status codes.
|
Package xrespond serializes payloads and writes final HTTP headers and status codes. |
|
validator
Package validator enforces OpenAPI 3.1 schema types, format constraints, and default value normalization.
|
Package validator enforces OpenAPI 3.1 schema types, format constraints, and default value normalization. |
Click to show internal directories.
Click to hide internal directories.