export

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: 9 Imported by: 0

Documentation

Overview

Package export implements the core of span-export: it converts intermediate schema records into various destination formats, mostly for SOLR.

Index

Constants

This section is empty.

Variables

View Source
var Exporters = map[string]func() finc.Exporter{
	"solr5vu3": func() finc.Exporter { return new(finc.Solr5Vufind3) },
	"formeta":  func() finc.Exporter { return new(finc.Formeta) },
}

Exporters holds available export formats.

Functions

func FormatNames

func FormatNames() []string

FormatNames returns the available export format names, sorted.

func Run

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

Run reads intermediate schema records from r, exports them to the configured format and writes the result to w.

Types

type Config

type Config struct {
	Format         string
	WithFullrecord bool
	BatchSize      int
	NumWorkers     int
}

Config holds the tunables for an export 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