writer

package
v0.11.7 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: MIT Imports: 18 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cleanup added in v0.7.0

func Cleanup(filename string, tables []string) (bool, error)
func Link(filename string, tables []string) error

Write symlink to file to all table subfolders

Types

type Writer

type Writer struct {
	stop.Struct
	sync.RWMutex
	// contains filtered or unexported fields
}

Writer dumps all received data in prepared for clickhouse format

func New

func New(in chan *RowBinary.WriteBuffer, path string, switchSize int64, autoInterval *config.ChunkAutoInterval, compAlgo config.CompAlgo, compLevel int, uploaders []string, onFinish func(string) error) *Writer

func (*Writer) Cleanup added in v0.7.0

func (w *Writer) Cleanup() error

func (*Writer) IsInProgress

func (w *Writer) IsInProgress(filename string) bool

func (*Writer) LinkAll added in v0.7.0

func (w *Writer) LinkAll() error

func (*Writer) Start

func (w *Writer) Start() error

func (*Writer) Stat

func (w *Writer) Stat(send func(metric string, value float64))

Jump to

Keyboard shortcuts

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