Documentation ¶
Index ¶
- func Execute(id string, payload interface{}, definition *Microgateway, ...) (code int, output interface{}, err error)
- func TranslateMappings(scope data.Scope, mappings []*Expr, log logger.Logger) (tree map[string]interface{}, err error)
- func TranslateMappingsToTree(scope data.Scope, mappings []*Expr, tree map[string]interface{}, ...) (err error)
- type Adapter
- type Expr
- type Microgateway
- type Output
- type Response
- type Service
- type Setting
- type Step
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Execute ¶
func Execute(id string, payload interface{}, definition *Microgateway, iometadata *metadata.IOMetadata, log logger.Logger) (code int, output interface{}, err error)
Execute executes the microgateway
Types ¶
type Adapter ¶
type Adapter struct {
Handler api.ServiceFunc
}
Adapter is an adapter activity for ServiceFunc
type Expr ¶
type Expr struct { expression.Expr Name string // contains filtered or unexported fields }
Expr is an expression with its original source
type Microgateway ¶
type Microgateway struct { Name string Async bool Steps []Step Responses []Response Configuration map[string]interface{} }
Microgateway defines a microgateway
Click to show internal directories.
Click to hide internal directories.