Documentation ¶
Index ¶
- Constants
- func ConvertMappingValue(mappingType string, mappingValue interface{}) (interface{}, error)
- func GetObjectMapping(value interface{}) (interface{}, bool)
- func IsConditionalMapping(value interface{}) bool
- func IsLiteral(value interface{}) bool
- func IsMappingRelaxed() bool
- func NewObjectMapperFactory(exprFactory expression.Factory) expression.Factory
- type ConditionalMapper
- type ExprMapper
- type ExprMapperFactory
- type Factory
- type Mapper
- type ObjectMapper
- type ObjectMapperFactory
- type ObjectMapping
Constants ¶
View Source
const ( Conditional = "@conditional" Otherwise = "@otherwise" )
View Source
const ( EnvMappingRelexed = "FLOGO_MAPPING_RELAXED" EnvMappingRelexedDefault = false )
View Source
const ( //To do an array mapping from upstreaming, use @foreach. /* "input": { "val" : { "a" : "=$activity[blah].out", "addresses": { "@foreach($activity[blah].out2, i)": { "street" : "=$.street", "zipcode" : "9999", "state" : "=$activity[test].state", "addresses2": { "@foreach($.addresses2)":{ "street2" : "=$loop[i].street2", "zipcode2" : "=$.zipcode", "state2" : "=$activity[test].state" } } } } } } */ FOREACH = "@foreach" )
Variables ¶
This section is empty.
Functions ¶
func ConvertMappingValue ¶
Deprecated
func GetObjectMapping ¶
func GetObjectMapping(value interface{}) (interface{}, bool)
func IsConditionalMapping ¶
func IsConditionalMapping(value interface{}) bool
IsConditionalMapping check to see if the mapping is an conditional mapping
func IsMappingRelaxed ¶
func IsMappingRelaxed() bool
func NewObjectMapperFactory ¶
func NewObjectMapperFactory(exprFactory expression.Factory) expression.Factory
Types ¶
type ConditionalMapper ¶
type ConditionalMapper struct {
// contains filtered or unexported fields
}
type ExprMapper ¶
type ExprMapper struct {
// contains filtered or unexported fields
}
type ExprMapperFactory ¶
type ExprMapperFactory struct {
// contains filtered or unexported fields
}
type Factory ¶
func NewFactory ¶
func NewFactory(resolver resolve.CompositeResolver) Factory
type ObjectMapper ¶
type ObjectMapper struct {
// contains filtered or unexported fields
}
type ObjectMapperFactory ¶
type ObjectMapperFactory struct {
// contains filtered or unexported fields
}
func (*ObjectMapperFactory) NewExpr ¶
func (am *ObjectMapperFactory) NewExpr(value string) (expression.Expr, error)
func (*ObjectMapperFactory) NewObjectMapper ¶
func (am *ObjectMapperFactory) NewObjectMapper(value interface{}) (expression.Expr, error)
type ObjectMapping ¶
type ObjectMapping struct {
Mapping interface{} `json:"mapping"`
}
Click to show internal directories.
Click to hide internal directories.