Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { IndexerConcurrency dynamicconfig.IntPropertyFn ESProcessorNumOfWorkers dynamicconfig.IntPropertyFn ESProcessorBulkActions dynamicconfig.IntPropertyFn // max number of requests in bulk ESProcessorBulkSize dynamicconfig.IntPropertyFn // max total size of bytes in bulk ESProcessorFlushInterval dynamicconfig.DurationPropertyFn ValidSearchAttributes dynamicconfig.MapPropertyFn EnableQueryAttributeValidation dynamicconfig.BoolPropertyFn }
Config contains all configs for indexer
type Indexer ¶
type Indexer struct {
// contains filtered or unexported fields
}
Indexer used to consumer data from kafka then send to ElasticSearch
func NewIndexer ¶
func NewIndexer( config *Config, client messaging.Client, esClient es.GenericClient, esConfig *config.ElasticSearchConfig, logger log.Logger, metricsClient metrics.Client, ) *Indexer
NewIndexer create a new Indexer
Click to show internal directories.
Click to hide internal directories.