sink

package
v0.0.0-...-a86d8da Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONLSink

type JSONLSink struct {
	Path string
}

Local file sink (for testing)

func NewJSONLSink

func NewJSONLSink(path string) JSONLSink

func (JSONLSink) Close

func (sink JSONLSink) Close() error

func (JSONLSink) WriteRows

func (sink JSONLSink) WriteRows(rows []protoreflect.ProtoMessage) error

type Sink

type Sink interface {
	WriteRows([]protoreflect.ProtoMessage) error
	Close() error
}

Sink type

func NewBigQuerySink

func NewBigQuerySink(project string, dataset string, table string, trace string) (Sink, error)

func NewSink

func NewSink(config conf.Sink) (Sink, error)

Jump to

Keyboard shortcuts

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