data

package
v0.9.13 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CsvDataLoader

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

func NewCsvDataLoader

func NewCsvDataLoader(filename string) *CsvDataLoader

func (*CsvDataLoader) HasMoreData

func (l *CsvDataLoader) HasMoreData() bool

func (*CsvDataLoader) ReadData

func (l *CsvDataLoader) ReadData() (result []*OrderBook)

type Data

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

func NewCsvData

func NewCsvData(filename string) *Data

func (*Data) GetIndex

func (d *Data) GetIndex() int

func (*Data) GetMaxIndex

func (d *Data) GetMaxIndex() int

func (*Data) GetOrderBook

func (d *Data) GetOrderBook() *OrderBook

func (*Data) Len

func (d *Data) Len() int

func (*Data) Next

func (d *Data) Next() bool

func (*Data) Reset

func (d *Data) Reset()

type DataLoader

type DataLoader interface {
	ReadData() []*OrderBook
	HasMoreData() bool
}

Jump to

Keyboard shortcuts

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