writer

package
v0.0.0-...-34b02ed Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CsvWriter

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

func NewCsvWriter

func NewCsvWriter(
	logger *slog.Logger,
	resource batch.ResourceWriter,
) *CsvWriter

func (*CsvWriter) Close

func (w *CsvWriter) Close(ctx context.Context) error

func (*CsvWriter) Open

func (w *CsvWriter) Open(ctx context.Context) error

func (*CsvWriter) WithEncoded

func (w *CsvWriter) WithEncoded(encoded bool) *CsvWriter

func (*CsvWriter) WithFieldNames

func (w *CsvWriter) WithFieldNames(fieldNames []string) *CsvWriter

func (*CsvWriter) Write

func (w *CsvWriter) Write(_ context.Context, record any) error

Jump to

Keyboard shortcuts

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