Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Exports ¶
func NewExportExpression ¶
type Flow ¶
type Flow struct {
Name string `json:"name"`
Steps []*Step `json:"steps"`
// contains filtered or unexported fields
}
func (*Flow) BuildStepsIndex ¶
func (flow *Flow) BuildStepsIndex()
BuildStepsIndex creates an index for quick access to steps by name. Since the steps are array-based, this index allows O(1) access time instead of O(n) for searching through the array.
type Request ¶
type Request struct {
Method string `json:"method"`
Path string `json:"path"`
Json Option[map[string]any] `json:"json"`
Xml Option[string] `json:"xml"`
// Files stores the files to upload to the server by fieldName -> relativePath (relative to config file)
Files Option[map[string]string] `json:"files"`
// Headers stores custom HTTP headers to send with the request (headerName -> value)
Headers Option[map[string]string] `json:"headers"`
DisableHeaders bool `json:"disableHeaders"`
}
type Step ¶
type Step struct {
Name string `json:"name"`
Request Request `json:"request"`
Assert Assert `json:"assert"`
Exports Exports `json:"exports"`
Options StepOptions `json:"options"`
}
type StepOptions ¶
type StepOptions struct {
Timeout Option[string] `json:"timeout"`
}
Click to show internal directories.
Click to hide internal directories.