Documentation ¶
Index ¶
- Constants
- func ConvertMappingValue(mappingType string, mappingValue interface{}) (interface{}, error)
- func GetObjectMapping(value interface{}) (interface{}, bool)
- func NewObjectMapper(mappings interface{}, exprF expression.Factory) (expr expression.Expr, err error)
- func NewObjectMapperFactory(exprFactory expression.Factory) expression.Factory
- func ToObjectMap(value interface{}) (map[string]interface{}, error)
- type ConditionalMapper
- type ExprMapper
- type ExprMapperFactory
- type Factory
- type Mapper
- type ObjectMapper
- type ObjectMapperFactory
- type ObjectMapping
Constants ¶
View Source
const ( Conditional = "@conditional" Otherwise = "@otherwise" )
Variables ¶
This section is empty.
Functions ¶
func ConvertMappingValue ¶
Deprecated
func GetObjectMapping ¶
func GetObjectMapping(value interface{}) (interface{}, bool)
func NewObjectMapper ¶ added in v1.0.0
func NewObjectMapper(mappings interface{}, exprF expression.Factory) (expr expression.Expr, err error)
func NewObjectMapperFactory ¶
func NewObjectMapperFactory(exprFactory expression.Factory) expression.Factory
func ToObjectMap ¶ added in v0.9.1
Types ¶
type ConditionalMapper ¶ added in v1.2.0
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.