Documentation ¶
Index ¶
- Constants
- func GetMappingValue(mappingV interface{}, inputScope data.Scope, resolver data.Resolver) (interface{}, error)
- func GetValueFromArrayRef(object interface{}, expressionRef interface{}, inputScope data.Scope, ...) (interface{}, error)
- func Map(mapping *data.MappingDef, inputScope, outputScope data.Scope, ...) error
- func RemovePrefixInput(str string) string
- func SetAttribute(fieldName string, value interface{}, outputScope data.Scope) error
- func SetValueToOutputScope(mapTo string, outputScope data.Scope, value interface{}) error
- type ArrayMapping
- func (a *ArrayMapping) DoArrayMapping(inputScope, outputScope data.Scope, resolver data.Resolver) (err error)
- func (a *ArrayMapping) DoMap(fromValue, value interface{}, to string, inputScope, outputScope data.Scope, ...) error
- func (a *ArrayMapping) RemovePrefixForMapTo()
- func (a *ArrayMapping) Validate() error
Constants ¶
View Source
const ( PRIMITIVE = "primitive" FOREACH = "foreach" NEWARRAY = "NEWARRAY" )
View Source
const (
MAP_TO_INPUT = "$INPUT"
)
Variables ¶
This section is empty.
Functions ¶
func GetMappingValue ¶
func GetValueFromArrayRef ¶
func RemovePrefixInput ¶
func SetAttribute ¶
Types ¶
type ArrayMapping ¶
type ArrayMapping struct { From interface{} `json:"from"` To string `json:"to"` Type string `json:"type"` Fields []*ArrayMapping `json:"fields,omitempty"` }
func ParseArrayMapping ¶
func ParseArrayMapping(arrayDatadata interface{}) (*ArrayMapping, error)
func (*ArrayMapping) DoArrayMapping ¶
func (*ArrayMapping) RemovePrefixForMapTo ¶
func (a *ArrayMapping) RemovePrefixForMapTo()
func (*ArrayMapping) Validate ¶
func (a *ArrayMapping) Validate() error
Directories ¶
Path | Synopsis |
---|---|
function
|
|
Package gabs implements a simplified wrapper around creating and parsing JSON.
|
Package gabs implements a simplified wrapper around creating and parsing JSON. |
Click to show internal directories.
Click to hide internal directories.