writers

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: LGPL-2.1 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BigQueryWriter

type BigQueryWriter struct {
	Project          string
	Dataset          string
	Table            string
	AutodetectSchema bool
	TmpFile          string
	// contains filtered or unexported fields
}

func NewBigQueryWriter

func NewBigQueryWriter(project string, dataset string, table string, autodetect bool, tmpfile string) BigQueryWriter

func (BigQueryWriter) Finalize

func (w BigQueryWriter) Finalize() error

func (BigQueryWriter) StoreApiResult

func (w BigQueryWriter) StoreApiResult(data interface{}) strategies.WriterStrategy

type FileWriter

type FileWriter struct {
	FileName string
	Format   string
}

func (FileWriter) Finalize

func (w FileWriter) Finalize() error

func (FileWriter) StoreApiResult

func (w FileWriter) StoreApiResult(data interface{}) strategies.WriterStrategy

type GcsStorageWriter

type GcsStorageWriter struct {
	Format     string
	BucketName string
	FileName   string
	// contains filtered or unexported fields
}

func (GcsStorageWriter) Finalize

func (w GcsStorageWriter) Finalize() error

func (GcsStorageWriter) StoreApiResult

func (w GcsStorageWriter) StoreApiResult(data interface{}) strategies.WriterStrategy

type LogWriter

type LogWriter struct {
	Format     string
	BucketName string
	FileName   string
}

func (LogWriter) Finalize

func (s LogWriter) Finalize() error

func (LogWriter) StoreApiResult

func (s LogWriter) StoreApiResult(data interface{}) strategies.WriterStrategy

Jump to

Keyboard shortcuts

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