Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Args ¶ added in v0.2.0
Args represents evaluated arguments passed to a Go step callback.
func (Args) Bind ¶ added in v0.2.0
Bind marshals and unmarshals arguments directly into a destination struct pointer.
func (Args) Get ¶ added in v0.2.0
Get retrieves the argument at key and converts it to type T with scalar coercion.
func (Args) GetOr ¶ added in v0.2.0
GetOr retrieves the argument at key or returns fallback if absent or incompatible.
type Context ¶ added in v0.2.0
type Context struct {
// contains filtered or unexported fields
}
Context encapsulates request metadata, body data, and pipeline step execution results.
func NewContext ¶ added in v0.2.0
NewContext builds an execution context enforcing bounded body reads.
func (*Context) EvalAny ¶ added in v0.2.0
func (c *Context) EvalAny(expr hcl.Expression) (any, error)
EvalAny evaluates an HCL expression into a native Go value.
func (*Context) EvalBool ¶ added in v0.2.0
func (c *Context) EvalBool(expr hcl.Expression) (bool, error)
EvalBool evaluates an HCL expression expecting a boolean outcome.
func (*Context) EvalContext ¶ added in v0.2.0
func (c *Context) EvalContext() *hcl.EvalContext
EvalContext constructs the live HCL evaluation context containing request and step data.
func (*Context) RequestContext ¶ added in v0.2.0
RequestContext returns the standard request context.
func (*Context) SetStepResult ¶ added in v0.2.0
SetStepResult registers outputs from an executed step into the context.
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Engine coordinates routing, connection pools, and pipeline step execution.
func (*Engine) SQL ¶ added in v0.2.0
SQL returns a managed *sql.DB connection pool by connection name.
type Option ¶ added in v0.2.0
type Option func(*Engine)
Option configures an Engine instance.
func WithLogger ¶ added in v0.2.0
WithLogger sets the structured logger for the engine.
func WithStep ¶ added in v0.2.0
func WithStep(name string, h StepHandler) Option
WithStep registers a named Go step callback.