localdata

package
v0.2.36 Latest Latest
Warning

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

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

Documentation

Overview

Package localdata implements the core of span-local-data: it extracts a small set of fields from intermediate schema records as comma separated values — something jq can do as well, albeit a bit slower.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

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

Run reads intermediate schema records from r and writes id, source id, doi and labels as comma separated values to w.

func WriteFields

func WriteFields(w io.Writer, values []string) (int, error)

WriteFields writes a variable number of fields as tab separated values into a writer.

Types

type Config

type Config struct {
	BatchSize int
}

Config holds the tunables for a local-data run.

func DefaultConfig

func DefaultConfig() Config

DefaultConfig returns the default configuration.

Jump to

Keyboard shortcuts

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