Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Registry []any = make([]any, 0)
Functions ¶
func ParseHTTPArguments ¶
ParseHTTPArguments note that I looked at the github.com/go-viper/mapstructure/v2.Decode function, but this wasn't able to decode some of the more complex data types. This is more heavyweight than I'd like, but it's fine for now.
func ParseOutput ¶
func ParseOutput(outputType string, httpResp HTTPResponse, raw []byte) any
Types ¶
type HTTPRequest ¶
type HTTPRequest struct {
Method string `json:"method"`
URI string `json:"uri"`
Headers map[string]string `json:"headers,omitempty"`
}
@link: https://github.com/serverlessworkflow/specification/blob/main/dsl-reference.md#http-request
type HTTPResponse ¶
type HTTPResponse struct {
Request HTTPRequest `json:"request"`
StatusCode int `json:"statusCode"`
Headers map[string]string `json:"headers,omitempty"`
Content any `json:"content,omitempty"`
}
@link: https://github.com/serverlessworkflow/specification/blob/main/dsl-reference.md#http-response
Click to show internal directories.
Click to hide internal directories.