Documentation ¶
Index ¶
- func ApplyCSVTransformations(filePath string, rules CSVTransformationRules) ([]map[string]interface{}, error)
- func ApplyFirebaseTransformations(data []map[string]interface{}, mapping MappingRules) []map[string]interface{}
- func ApplyJSONTransformations(data []map[string]interface{}, rules JSONTransformationRules) []map[string]interface{}
- func ApplyTransformations(data []map[string]string, rules TransformationRules) []map[string]string
- func CSVToJSON(data []map[string]interface{}) []byte
- type AggregationRule
- type CSVAggregationRule
- type CSVFilterRule
- type CSVMappingRules
- type CSVTransformationRules
- type FilterRule
- type JSONAggregationRule
- type JSONFilterRule
- type JSONMappingRules
- type JSONTransformationRules
- type MappingRules
- type TransformationRules
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyCSVTransformations ¶
func ApplyCSVTransformations(filePath string, rules CSVTransformationRules) ([]map[string]interface{}, error)
ApplyCSVTransformations applies all transformations to CSV data
func ApplyFirebaseTransformations ¶
func ApplyFirebaseTransformations(data []map[string]interface{}, mapping MappingRules) []map[string]interface{}
func ApplyJSONTransformations ¶
func ApplyJSONTransformations(data []map[string]interface{}, rules JSONTransformationRules) []map[string]interface{}
ApplyJSONTransformations applies all transformations to JSON data
func ApplyTransformations ¶
func ApplyTransformations(data []map[string]string, rules TransformationRules) []map[string]string
ApplyTransformations applies all transformations to the data
Types ¶
type AggregationRule ¶
type CSVAggregationRule ¶
type CSVFilterRule ¶
type CSVMappingRules ¶
type CSVTransformationRules ¶
type CSVTransformationRules struct { Filter []CSVFilterRule `yaml:"filter"` Mapping CSVMappingRules `yaml:"mapping"` Aggregation []CSVAggregationRule `yaml:"aggregation"` }
Define transformation rules structures for CSV
type FilterRule ¶
type JSONAggregationRule ¶
type JSONFilterRule ¶
type JSONMappingRules ¶
type JSONTransformationRules ¶
type JSONTransformationRules struct { Filter []JSONFilterRule `yaml:"filter"` Mapping JSONMappingRules `yaml:"mapping"` Aggregation []JSONAggregationRule `yaml:"aggregation"` }
Define transformation rules structures for JSON
type MappingRules ¶
type TransformationRules ¶
type TransformationRules struct { Filter []FilterRule `yaml:"filter"` Mapping MappingRules `yaml:"mapping"` Aggregation []AggregationRule `yaml:"aggregation"` }
Define transformation rules structures
Click to show internal directories.
Click to hide internal directories.