workers

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SnapshotReader

type SnapshotReader interface {
	Init() (SnapshotReader, error)
	Close() error
	Exchanges() []string
	Pairs(exchangeName string) []common.Pair
	TimeRange(exchangeName string, pair common.Pair) *utils.TimeRange
	Read(exchangeName string, pair common.Pair, timeRange utils.TimeRange, interval int64, mode common.SnapshotMode, size int, ctx context.Context) (chan common.Snapshot, error)
}

type SnapshotWriter

type SnapshotWriter interface {
	Init(ch chan common.Snapshot) SnapshotWriter
	Run(ctx context.Context) error
	Close() error
}

Directories

Path Synopsis
backends

Jump to

Keyboard shortcuts

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