ingester

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ingester

type Ingester interface {
	// Records takes a filepath, reads the file and converts its
	// data into Records, or returns error if read was not
	// successful.
	Records(path string) ([]record.Record, error)

	// RecordsFromText takes a io.Reader and converts its data
	// into records, or return back an error.
	RecordsFromText(
		r io.Reader,
		fileName, ext string,
	) (rec []record.Record, sep rune, err error)

	// RecordsFromCSV takes io.Reader, CSV separator, fileName
	//  and converts data into records
	RecordsFromCSV(
		r io.Reader,
		sep rune,
		fileName string,
	) ([]record.Record, error)
}

Ingester converts plain text, CSV, or TSV file into name records.

Jump to

Keyboard shortcuts

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