Documentation
¶
Overview ¶
Package hclapi provides a declarative, embeddable API runtime engine.
Index ¶
- Variables
- type Args
- type ByteSize
- type Connection
- type Duration
- type Engine
- type ExecutionContext
- type ExecutionContextOption
- type Field
- type InvalidParam
- type Options
- type PoolConfig
- type Problem
- type ProblemHandler
- type RequestState
- type Schema
- type Server
- type Step
- type StepHandler
- type StepResult
Constants ¶
This section is empty.
Variables ¶
var DefaultProblemHandler = problem.DefaultHandler
DefaultProblemHandler serializes Problem as application/problem+json.
Functions ¶
This section is empty.
Types ¶
type Args ¶ added in v0.1.2
Args represents evaluated arguments passed to a Go step from an HCL manifest.
type ByteSize ¶
ByteSize represents a quantity of bytes unmarshaled from text (e.g. "25MB", "10GiB").
type Connection ¶ added in v0.1.2
type Connection = manifest.Connection
Connection represents a resolved database, cache, or storage backend configuration.
type Duration ¶
Duration wraps a time.Duration with human-readable text deserialization (e.g. "15m", "30s").
type ExecutionContext ¶ added in v0.1.2
type ExecutionContext = runtime.ExecutionContext
ExecutionContext encapsulates the runtime state for a single HTTP request pipeline execution.
type ExecutionContextOption ¶ added in v0.1.2
type ExecutionContextOption = runtime.ExecutionContextOption
ExecutionContextOption configures optional behavior during ExecutionContext creation.
type InvalidParam ¶
type InvalidParam = problem.InvalidParam
InvalidParam represents a single field-level schema validation constraint failure.
type PoolConfig ¶ added in v0.1.2
type PoolConfig = manifest.PoolConfig
PoolConfig defines connection pool sizing and lifecycle settings.
type Problem ¶ added in v0.1.2
Problem represents an RFC 9457 compliant error object.
func NewProblem ¶ added in v0.1.2
NewProblem creates a Problem with title and type derived from the HTTP status code.
type ProblemHandler ¶ added in v0.1.2
ProblemHandler defines the contract for custom error serialization.
type RequestState ¶
type RequestState = runtime.RequestState
RequestState represents normalized HTTP request metadata extracted at runtime.
type Step ¶ added in v0.1.2
Step encapsulates the invocation state, arguments, and request metadata for a Go step.
type StepHandler ¶
type StepHandler = runtime.StepHandler
StepHandler defines the signature for custom native Go step callbacks.
type StepResult ¶
type StepResult = runtime.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. |