writers

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UniqueName

func UniqueName(prefix string, pair common.Pair, exchange string) string

Types

type CacheWriter

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

func NewCacheWriterWriter

func NewCacheWriterWriter(logger zerolog.Logger, exchange string, pair common.Pair) *CacheWriter

func (*CacheWriter) Close

func (e *CacheWriter) Close() error

func (*CacheWriter) GetSnapshots

func (e *CacheWriter) GetSnapshots() []common.Snapshot

func (*CacheWriter) IndexName

func (e *CacheWriter) IndexName() string

func (*CacheWriter) Init

func (*CacheWriter) Run

func (e *CacheWriter) Run(ctx context.Context) error

func (*CacheWriter) SubscribeUpdates

func (e *CacheWriter) SubscribeUpdates(chanId string, chanSize int) chan *common.Snapshot

func (*CacheWriter) UnsubscribeUpdates

func (e *CacheWriter) UnsubscribeUpdates(chanId string)

type ElasticSearchWriter

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

func NewElasticSearchWriter

func NewElasticSearchWriter(logger zerolog.Logger, exchange string, pair common.Pair, conf ElasticSearchWriterConfig, serverUrls ...string) *ElasticSearchWriter

func (*ElasticSearchWriter) Close

func (e *ElasticSearchWriter) Close() error

func (*ElasticSearchWriter) IndexName

func (e *ElasticSearchWriter) IndexName() string

func (*ElasticSearchWriter) Init

func (*ElasticSearchWriter) Run

type ElasticSearchWriterConfig

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

func NewElasticSearchWriterConfig

func NewElasticSearchWriterConfig(indexPrefix string, esChanBufferSize int, esBulkSize int) ElasticSearchWriterConfig

Jump to

Keyboard shortcuts

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