Versions in this module Expand all Collapse all v1 v1.0.0 Aug 7, 2021 Changes in this version + func AuthValidate(r *http.Request, auth *Authorizer) error + func CORSValidate(r *http.Request, w http.ResponseWriter, cors map[string]interface{}) error + func SetConfig(port int, prefix string) + func Validate(r *http.Request, w http.ResponseWriter, wf *Workflow) error + type APIStep struct + CustomHeaders map[string]string + Endpoint string + IncludeHeaders bool + Method string + Payload interface{} + func (api APIStep) Execute(wf *Workflow, headers map[string][]string, queryParams queryParams, ...) (interface{}, error) + type Authorizer struct + AKey string + ExePath string + Handler string + Input string + Type string + type CORS struct + AllowHeaders string + AllowMethods string + AllowOrigin string + MaxAge int64 + type Config struct + Port int + Prefix string + func GetEngConfig() *Config + type ExecuteStep interface + Execute func(*Workflow, map[string][]string, queryParams, map[string]interface{}) (interface{}, error) + type JSONData struct + type LogicStep struct + ExePath string + Handler string + Params interface{} + Runtime constants.Runtime + func (l LogicStep) Execute(wf *Workflow, headers map[string][]string, queryParams queryParams, ...) (interface{}, error) + type PrimaryKey struct + Input string + PKey string + type Resp struct + type Step struct + Async bool + Authorize bool + Break bool + Delay string + Error *StepError + ID string + Name string + NextStep string + PostCondition interface{} + PreCondition interface{} + Timeout string + Type constants.StepType + Users []string + type StepError struct + Goto string + Retry bool + type Workflow struct + Authorizer *Authorizer + CORS map[string]interface{} + ID string + Name string + PrimaryKey []PrimaryKey + Steps []Step + Version string + func (wf *Workflow) Run(ctx context.Context, headers map[string][]string, ...) (interface{}, error)