Documentation
¶
Index ¶
- Variables
- func ParseHTTPArguments(task *model.CallHTTP, state *utils.State) (*model.HTTPArguments, error)
- func ParseOutput(outputType string, httpResp HTTPResponse, raw []byte) any
- type CallGRPC
- type CallHTTP
- type HTTPRequest
- type HTTPResponse
- type Run
- func (r *Run) CallContainerActivity(ctx context.Context, task *model.RunTask, input any, state *utils.State) (any, error)
- func (r *Run) CallScriptActivity(ctx context.Context, task *model.RunTask, input any, state *utils.State) (any, error)
- func (r *Run) CallShellActivity(ctx context.Context, task *model.RunTask, input any, state *utils.State) (any, error)
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
type Run ¶
type Run struct{}
func (*Run) CallContainerActivity ¶ added in v0.6.4
func (*Run) CallScriptActivity ¶
Click to show internal directories.
Click to hide internal directories.