Documentation ¶
Index ¶
- func RegisterColumnTransformation(t ColumnTransformationType, c ColumnTransformationInitializer)
- type ColumnTemplateVariables
- type ColumnTransformationFunction
- type ColumnTransformationInitializer
- type ColumnTransformationType
- type MappedRow
- type RowMeta
- type TemplateTransformationOptions
- type TransformationOptions
- type ValueTransformationOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterColumnTransformation ¶
func RegisterColumnTransformation(t ColumnTransformationType, c ColumnTransformationInitializer)
Types ¶
type ColumnTemplateVariables ¶
type ColumnTransformationFunction ¶
type ColumnTransformationFunction func(row MappedRow, rowMeta RowMeta, variables ColumnTemplateVariables, fieldValue ast.ValueExpr) (interface{}, error)
func GetColumnTransformation ¶
func GetColumnTransformation(t ColumnTransformationType, opts json.RawMessage, additionalOptions any) (ColumnTransformationFunction, error)
type ColumnTransformationInitializer ¶
type ColumnTransformationInitializer func(rawOptions json.RawMessage, extraOptions any) (ColumnTransformationFunction, error)
type ColumnTransformationType ¶
type ColumnTransformationType string
var TransformationTypeTemplate ColumnTransformationType = "template"
var TransformationTypeValue ColumnTransformationType = "value"
type TemplateTransformationOptions ¶
type TemplateTransformationOptions struct {
Template string `json:"template,omitempty"`
}
type TransformationOptions ¶
type TransformationOptions map[string]interface{}
type ValueTransformationOptions ¶
type ValueTransformationOptions struct {
Value interface{} `json:"value"`
}
Click to show internal directories.
Click to hide internal directories.