compact

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BinanceOptions

type BinanceOptions struct {
	TimeColumn  uint    `yaml:"time_column"`
	PriceColumn uint    `yaml:"price_column"`
	PriceDiff   float64 `yaml:"price_diff"`
}

type TardisOptions

type TardisOptions struct {
	// The column name that contains symbol
	NameColumn string `yaml:"name_column"`

	// The column name that contains price
	PriceColumn string `yaml:"price_column"`

	// All columns that should be saved
	Columns []string `yaml:"columns"`
}

type Writer

type Writer interface {
	Write(record []string) error
	Flush() error
}

func NewCompactBinance

func NewCompactBinance(w io.Writer, opts *BinanceOptions) Writer

func NewCompactTardis

func NewCompactTardis(w io.Writer, opts *TardisOptions) Writer

Jump to

Keyboard shortcuts

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