Documentation ¶
Overview ¶
Package elasticsearch is a generated GoMock package.
Index ¶
- func NewProcessor(cfg *ProcessorConfig, esClient client.Client, logger log.Logger, ...) *processorImpl
- func NewVisibilityManager(indexName string, esClient client.Client, cfg *config.VisibilityConfig, ...) persistence.VisibilityManager
- func NewVisibilityManagerMetrics(persistence persistence.VisibilityManager, metricClient metrics.Client, ...) persistence.VisibilityManager
- func NewVisibilityStore(esClient client.Client, index string, ...) *visibilityStore
- type MockProcessor
- type MockProcessorMockRecorder
- type Processor
- type ProcessorConfig
- type VisibilityTaskAckTimeoutError
- type VisibilityTaskNAckError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProcessor ¶ added in v1.5.0
func NewProcessor( cfg *ProcessorConfig, esClient client.Client, logger log.Logger, metricsClient metrics.Client, ) *processorImpl
NewProcessor create new processorImpl
func NewVisibilityManager ¶ added in v1.5.7
func NewVisibilityManager( indexName string, esClient client.Client, cfg *config.VisibilityConfig, searchAttributesProvider searchattribute.Provider, processor Processor, metricsClient metrics.Client, log log.Logger, ) persistence.VisibilityManager
NewVisibilityManager create a visibility manager for Elasticsearch In history, it only writes data; In frontend, it only needs ES client and related config for reading data
func NewVisibilityManagerMetrics ¶ added in v1.5.7
func NewVisibilityManagerMetrics(persistence persistence.VisibilityManager, metricClient metrics.Client, logger log.Logger) persistence.VisibilityManager
NewVisibilityManagerMetrics wrap visibility client with metrics
func NewVisibilityStore ¶ added in v1.5.7
func NewVisibilityStore( esClient client.Client, index string, searchAttributesProvider searchattribute.Provider, processor Processor, cfg *config.VisibilityConfig, logger log.Logger, metricsClient metrics.Client, ) *visibilityStore
NewVisibilityStore create a visibility store connecting to ElasticSearch
Types ¶
type MockProcessor ¶ added in v1.5.0
type MockProcessor struct {
// contains filtered or unexported fields
}
MockProcessor is a mock of Processor interface.
func NewMockProcessor ¶ added in v1.5.0
func NewMockProcessor(ctrl *gomock.Controller) *MockProcessor
NewMockProcessor creates a new mock instance.
func (*MockProcessor) Add ¶ added in v1.5.0
func (m *MockProcessor) Add(request *client.BulkableRequest, visibilityTaskKey string, ackCh chan<- bool)
Add mocks base method.
func (*MockProcessor) EXPECT ¶ added in v1.5.0
func (m *MockProcessor) EXPECT() *MockProcessorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockProcessor) Start ¶ added in v1.5.0
func (m *MockProcessor) Start()
Start mocks base method.
type MockProcessorMockRecorder ¶ added in v1.5.0
type MockProcessorMockRecorder struct {
// contains filtered or unexported fields
}
MockProcessorMockRecorder is the mock recorder for MockProcessor.
func (*MockProcessorMockRecorder) Add ¶ added in v1.5.0
func (mr *MockProcessorMockRecorder) Add(request, visibilityTaskKey, ackCh interface{}) *gomock.Call
Add indicates an expected call of Add.
func (*MockProcessorMockRecorder) Start ¶ added in v1.5.0
func (mr *MockProcessorMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start.
func (*MockProcessorMockRecorder) Stop ¶ added in v1.5.0
func (mr *MockProcessorMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.
type Processor ¶ added in v1.5.0
type Processor interface { common.Daemon // Add request to bulk processor. Add(request *client.BulkableRequest, visibilityTaskKey string, ackCh chan<- bool) }
Processor is interface for elastic search bulk processor
type ProcessorConfig ¶ added in v1.5.0
type ProcessorConfig 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 }
ProcessorConfig contains all configs for processor
type VisibilityTaskAckTimeoutError ¶ added in v1.5.0
func (*VisibilityTaskAckTimeoutError) Error ¶ added in v1.5.0
func (v *VisibilityTaskAckTimeoutError) Error() string
type VisibilityTaskNAckError ¶ added in v1.5.0
type VisibilityTaskNAckError struct {
VisibilityTaskKey string
}
func (*VisibilityTaskNAckError) Error ¶ added in v1.5.0
func (v *VisibilityTaskNAckError) Error() string