lib

package
v0.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ExtractedChan = make(chan map[string]interface{})
View Source
var ProcessingWG sync.WaitGroup
View Source
var ResultChan = make(chan map[string]interface{}, 100)
View Source
var TransformMetrics = &TransformationMetrics{}

Functions

func ExtractRecords added in v0.5.0

func ExtractRecords(streamFunc func(*models.StreamConfig) error)

ExtractRecords begins streaming records from source (sending to ExtractedChan) and start goroutines to extract records

func GenerateSchema

func GenerateSchema(record interface{}) (map[string]interface{}, error)

GenerateSchema generates a JSON schema from a record

func RecordMessage added in v0.6.0

func RecordMessage(record map[string]interface{}) error

RecordMessage generates a message of the record

func UpdateSchema added in v0.3.0

func UpdateSchema(existingSchema, newSchema map[string]interface{}) (map[string]interface{}, error)

UpdateSchema merges the new schema into the existing schema

Types

type TransformationMetrics added in v0.7.1

type TransformationMetrics struct {
	Processed uint64 `json:"processed"`
	Skipped   uint64 `json:"skipped"`
	Filtered  uint64 `json:"filtered"` // filtered by bookmark
	// contains filtered or unexported fields
}

TransformationMetrics tracks record transformation statistics

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL