reshape

package
v0.2.37 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2026 License: GPL-3.0 Imports: 33 Imported by: 0

Documentation

Overview

Package reshape implements the core of span-import (a.k.a. span-reshape): it converts various input formats into the intermediate schema.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatNames

func FormatNames() []string

FormatNames returns the available input format names, sorted.

func Run

func Run(cfg Config, r io.Reader, w io.Writer) error

Run reads records from r in the configured input format and writes intermediate schema records to w.

Types

type Config

type Config struct {
	Name       string
	BatchSize  int
	NumWorkers int
	Verbose    bool
}

Config holds the tunables for a reshape run.

func DefaultConfig

func DefaultConfig() Config

DefaultConfig returns the default configuration.

type IntermediateSchemaer

type IntermediateSchemaer interface {
	ToIntermediateSchema() (*finc.IntermediateSchema, error)
}

IntermediateSchemaer wrap a basic conversion method.

Jump to

Keyboard shortcuts

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