inputfile

package
v0.0.0-...-3b9cb7e Latest Latest
Warning

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

Go to latest
Published: May 3, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileFormat

type FileFormat string
const (
	Jsonl FileFormat = "jsonl"
)

type InputFileClient

type InputFileClient struct {
	// contains filtered or unexported fields
}

func NewInputFileClient

func NewInputFileClient(conf InputFileClientConfig) InputFileClient

func (InputFileClient) Connect

func (client InputFileClient) Connect(
	ctx context.Context,
	writer gallon.WriteCloser,
) error

type InputFileClientConfig

type InputFileClientConfig struct {
	FilePath   string
	FileFormat FileFormat
	Decoder    func([]byte) (gallon.Record, error)
}

Jump to

Keyboard shortcuts

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