Versions in this module Expand all Collapse all v0 v0.1.0 Aug 29, 2021 Changes in this version + const DefaultSnapshotInterval + type Downloader interface + Close func() error + Init func(enabledExchanges ...string) error + Run func(ctx context.Context) error + Stop func() + func NewSnapshotDownloader(pairs []common.Pair, snapshotInterval time.Duration, ...) Downloader + func NewSnapshotDownloaderTicks(pairs []common.Pair, snapshotInterval int, outChan chan common.Snapshot, ...) Downloader + type SnapshotDownloader struct + func (s *SnapshotDownloader) Close() error + func (s *SnapshotDownloader) Init(enabledExchanges ...string) error + func (s *SnapshotDownloader) Run(ctx context.Context) error + func (s *SnapshotDownloader) Stop() + type SnapshotDownloaderConfig struct + ExitOnClose bool