Documentation ¶
Index ¶
- func UniqueName(prefix string, pair common.Pair, exchange string) string
- type CacheWriter
- func (e *CacheWriter) Close() error
- func (e *CacheWriter) GetSnapshots() []common.Snapshot
- func (e *CacheWriter) IndexName() string
- func (e *CacheWriter) Init(ch chan common.Snapshot) workers.SnapshotWriter
- func (e *CacheWriter) Run(ctx context.Context) error
- func (e *CacheWriter) SubscribeUpdates(chanId string, chanSize int) chan *common.Snapshot
- func (e *CacheWriter) UnsubscribeUpdates(chanId string)
- type ElasticSearchWriter
- type ElasticSearchWriterConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CacheWriter ¶
type CacheWriter struct {
// contains filtered or unexported fields
}
func NewCacheWriterWriter ¶
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 (e *CacheWriter) Init(ch chan common.Snapshot) workers.SnapshotWriter
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 (e *ElasticSearchWriter) Init(ch chan common.Snapshot) workers.SnapshotWriter
type ElasticSearchWriterConfig ¶
type ElasticSearchWriterConfig struct {
// contains filtered or unexported fields
}
func NewElasticSearchWriterConfig ¶
func NewElasticSearchWriterConfig(indexPrefix string, esChanBufferSize int, esBulkSize int) ElasticSearchWriterConfig
Click to show internal directories.
Click to hide internal directories.