downloaders

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: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultSnapshotInterval = time.Second * 30
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Downloader

type Downloader interface {
	Init(enabledExchanges ...string) error
	Run(ctx context.Context) error
	Stop()
	Close() error
}

func NewSnapshotDownloader

func NewSnapshotDownloader(pairs []common.Pair, snapshotInterval time.Duration, outChan chan common.Snapshot, maxSnapshotSize int) Downloader

func NewSnapshotDownloaderTicks

func NewSnapshotDownloaderTicks(pairs []common.Pair, snapshotInterval int, outChan chan common.Snapshot, maxSnapshotSize int) Downloader

type SnapshotDownloader

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

func (*SnapshotDownloader) Close

func (s *SnapshotDownloader) Close() error

func (*SnapshotDownloader) Init

func (s *SnapshotDownloader) Init(enabledExchanges ...string) error

func (*SnapshotDownloader) Run

func (*SnapshotDownloader) Stop

func (s *SnapshotDownloader) Stop()

type SnapshotDownloaderConfig

type SnapshotDownloaderConfig struct {
	ExitOnClose bool
}

Jump to

Keyboard shortcuts

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