output

package
v0.0.0-...-1322e1a Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSV

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

func NewCSV

func NewCSV(l *log.Logger, in <-chan data.Record, c config.Index) CSV

func (CSV) Write

func (c CSV) Write() error

type Format

type Format interface {
	Write() error
}

Format - contract for supported ouput formats

func ResolveFormat

func ResolveFormat(logger *log.Logger, queue <-chan data.Record, cfg config.Index) Format

ResolveFormat -

type JSON

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

func NewJSON

func NewJSON(l *log.Logger, in <-chan data.Record, c config.Index) JSON

func (JSON) Write

func (j JSON) Write() error

type Logger

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

func NewLogger

func NewLogger(l *log.Logger, in <-chan data.Record, _ config.Index) Logger

func (Logger) Write

func (l Logger) Write() error

Jump to

Keyboard shortcuts

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