Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnvironmentCfg ¶
type Environments ¶
type ExecutionContext ¶ added in v0.5.1
type ExternalFunctionCfg ¶ added in v0.5.0
type RequestCfg ¶
type RequestCfg struct { Name string `hcl:"name,label"` Body hcl.Body `hcl:",remain"` }
type RequestCfgs ¶
type RequestCfgs []*RequestCfg
type RequestTiming ¶
type Response ¶
type Response struct { StatusCode int Proto string Body []byte Headers http.Header Timing RequestTiming }
func DoRequest ¶
func DoRequest(request Request, execCtx *ExecutionContext) (response Response)
type RootCfg ¶
type RootCfg struct { Requests []*RequestCfg `hcl:"request,block"` Variables []*VariableCfg `hcl:"variable,block"` Environments []*EnvironmentCfg `hcl:"env,block"` ExternalFunctions []*ExternalFunctionCfg `hcl:"external-function,block"` }
type VariableCfg ¶
type VariableCfg struct { Name string `hcl:"name,label"` Value hcl.Body `hcl:"value,remain"` }
Click to show internal directories.
Click to hide internal directories.