Documentation ¶
Overview ¶
Package visibility is a generated GoMock package.
Index ¶
- Constants
- Variables
- func AllowListForValidation(storeNames []string, allowList dynamicconfig.BoolPropertyFnWithNamespaceFilter) dynamicconfig.BoolPropertyFnWithNamespaceFilter
- func NewManager(persistenceCfg config.Persistence, ...) (manager.VisibilityManager, error)
- func NewVisibilityManagerMetrics(delegate manager.VisibilityManager, metricHandler metrics.Handler, ...) *visibilityManagerMetrics
- func NewVisibilityManagerRateLimited(delegate manager.VisibilityManager, readMaxQPS dynamicconfig.IntPropertyFn, ...) *visibilityManagerRateLimited
- type MockmanagerSelector
- type MockmanagerSelectorMockRecorder
- type VisibilityManagerDual
- func (v *VisibilityManagerDual) Close()
- func (v *VisibilityManagerDual) CountWorkflowExecutions(ctx context.Context, request *manager.CountWorkflowExecutionsRequest) (*manager.CountWorkflowExecutionsResponse, error)
- func (v *VisibilityManagerDual) DeleteWorkflowExecution(ctx context.Context, request *manager.VisibilityDeleteWorkflowExecutionRequest) error
- func (v *VisibilityManagerDual) GetIndexName() string
- func (v *VisibilityManagerDual) GetPrimaryVisibility() manager.VisibilityManager
- func (v *VisibilityManagerDual) GetReadStoreName(nsName namespace.Name) string
- func (v *VisibilityManagerDual) GetSecondaryVisibility() manager.VisibilityManager
- func (v *VisibilityManagerDual) GetStoreNames() []string
- func (v *VisibilityManagerDual) GetWorkflowExecution(ctx context.Context, request *manager.GetWorkflowExecutionRequest) (*manager.GetWorkflowExecutionResponse, error)
- func (v *VisibilityManagerDual) HasStoreName(stName string) bool
- func (v *VisibilityManagerDual) ListWorkflowExecutions(ctx context.Context, request *manager.ListWorkflowExecutionsRequestV2) (*manager.ListWorkflowExecutionsResponse, error)
- func (v *VisibilityManagerDual) RecordWorkflowExecutionClosed(ctx context.Context, request *manager.RecordWorkflowExecutionClosedRequest) error
- func (v *VisibilityManagerDual) RecordWorkflowExecutionStarted(ctx context.Context, request *manager.RecordWorkflowExecutionStartedRequest) error
- func (v *VisibilityManagerDual) ScanWorkflowExecutions(ctx context.Context, request *manager.ListWorkflowExecutionsRequestV2) (*manager.ListWorkflowExecutionsResponse, error)
- func (v *VisibilityManagerDual) UpsertWorkflowExecution(ctx context.Context, request *manager.UpsertWorkflowExecutionRequest) error
- func (v *VisibilityManagerDual) ValidateCustomSearchAttributes(searchAttributes map[string]any) (map[string]any, error)
- type VisibilityStoreFactory
Constants ¶
View Source
const ( // SecondaryVisibilityWritingModeOff means do not write to advanced visibility store SecondaryVisibilityWritingModeOff = "off" // SecondaryVisibilityWritingModeOn means only write to advanced visibility store SecondaryVisibilityWritingModeOn = "on" // SecondaryVisibilityWritingModeDual means write to both normal visibility and advanced visibility store SecondaryVisibilityWritingModeDual = "dual" )
View Source
const ( // MemoEncoding is default encoding for visibility memo. MemoEncoding = enumspb.ENCODING_TYPE_PROTO3 )
View Source
const (
// OperatorPriority is used to give precedence to calls coming from web UI or tctl
OperatorPriority = 0
)
View Source
const (
RateLimitDefaultToken = 1
)
Variables ¶
View Source
var (
PrioritiesOrdered = []int{OperatorPriority, 1}
)
Functions ¶
func AllowListForValidation ¶ added in v1.20.0
func AllowListForValidation( storeNames []string, allowList dynamicconfig.BoolPropertyFnWithNamespaceFilter, ) dynamicconfig.BoolPropertyFnWithNamespaceFilter
func NewManager ¶ added in v1.13.0
func NewManager( persistenceCfg config.Persistence, persistenceResolver resolver.ServiceResolver, customVisibilityStoreFactory VisibilityStoreFactory, esProcessorConfig *elasticsearch.ProcessorConfig, searchAttributesProvider searchattribute.Provider, searchAttributesMapperProvider searchattribute.MapperProvider, maxReadQPS dynamicconfig.IntPropertyFn, maxWriteQPS dynamicconfig.IntPropertyFn, operatorRPSRatio dynamicconfig.FloatPropertyFn, enableReadFromSecondaryVisibility dynamicconfig.BoolPropertyFnWithNamespaceFilter, visibilityEnableShadowReadMode dynamicconfig.BoolPropertyFn, secondaryVisibilityWritingMode dynamicconfig.StringPropertyFn, visibilityDisableOrderByClause dynamicconfig.BoolPropertyFnWithNamespaceFilter, visibilityEnableManualPagination dynamicconfig.BoolPropertyFnWithNamespaceFilter, metricsHandler metrics.Handler, logger log.Logger, ) (manager.VisibilityManager, error)
func NewVisibilityManagerMetrics ¶ added in v1.13.0
func NewVisibilityManagerRateLimited ¶ added in v1.13.0
func NewVisibilityManagerRateLimited( delegate manager.VisibilityManager, readMaxQPS dynamicconfig.IntPropertyFn, writeMaxQPS dynamicconfig.IntPropertyFn, operatorRPSRatio dynamicconfig.FloatPropertyFn, ) *visibilityManagerRateLimited
Types ¶
type MockmanagerSelector ¶ added in v1.23.0
type MockmanagerSelector struct {
// contains filtered or unexported fields
}
MockmanagerSelector is a mock of managerSelector interface.
func NewMockmanagerSelector ¶ added in v1.23.0
func NewMockmanagerSelector(ctrl *gomock.Controller) *MockmanagerSelector
NewMockmanagerSelector creates a new mock instance.
func (*MockmanagerSelector) EXPECT ¶ added in v1.23.0
func (m *MockmanagerSelector) EXPECT() *MockmanagerSelectorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockmanagerSelectorMockRecorder ¶ added in v1.23.0
type MockmanagerSelectorMockRecorder struct {
// contains filtered or unexported fields
}
MockmanagerSelectorMockRecorder is the mock recorder for MockmanagerSelector.
type VisibilityManagerDual ¶ added in v1.23.0
type VisibilityManagerDual struct {
// contains filtered or unexported fields
}
func NewVisibilityManagerDual ¶ added in v1.13.0
func NewVisibilityManagerDual( visibilityManager manager.VisibilityManager, secondaryVisibilityManager manager.VisibilityManager, managerSelector managerSelector, enableShadowReadMode dynamicconfig.BoolPropertyFn, ) *VisibilityManagerDual
NewVisibilityManagerDual create a visibility manager that operate on multiple manager implementations based on dynamic config.
func (*VisibilityManagerDual) Close ¶ added in v1.23.0
func (v *VisibilityManagerDual) Close()
func (*VisibilityManagerDual) CountWorkflowExecutions ¶ added in v1.23.0
func (v *VisibilityManagerDual) CountWorkflowExecutions( ctx context.Context, request *manager.CountWorkflowExecutionsRequest, ) (*manager.CountWorkflowExecutionsResponse, error)
func (*VisibilityManagerDual) DeleteWorkflowExecution ¶ added in v1.23.0
func (v *VisibilityManagerDual) DeleteWorkflowExecution( ctx context.Context, request *manager.VisibilityDeleteWorkflowExecutionRequest, ) error
func (*VisibilityManagerDual) GetIndexName ¶ added in v1.23.0
func (v *VisibilityManagerDual) GetIndexName() string
func (*VisibilityManagerDual) GetPrimaryVisibility ¶ added in v1.23.0
func (v *VisibilityManagerDual) GetPrimaryVisibility() manager.VisibilityManager
func (*VisibilityManagerDual) GetReadStoreName ¶ added in v1.23.0
func (v *VisibilityManagerDual) GetReadStoreName(nsName namespace.Name) string
func (*VisibilityManagerDual) GetSecondaryVisibility ¶ added in v1.23.0
func (v *VisibilityManagerDual) GetSecondaryVisibility() manager.VisibilityManager
func (*VisibilityManagerDual) GetStoreNames ¶ added in v1.23.0
func (v *VisibilityManagerDual) GetStoreNames() []string
func (*VisibilityManagerDual) GetWorkflowExecution ¶ added in v1.23.0
func (v *VisibilityManagerDual) GetWorkflowExecution( ctx context.Context, request *manager.GetWorkflowExecutionRequest, ) (*manager.GetWorkflowExecutionResponse, error)
func (*VisibilityManagerDual) HasStoreName ¶ added in v1.23.0
func (v *VisibilityManagerDual) HasStoreName(stName string) bool
func (*VisibilityManagerDual) ListWorkflowExecutions ¶ added in v1.23.0
func (v *VisibilityManagerDual) ListWorkflowExecutions( ctx context.Context, request *manager.ListWorkflowExecutionsRequestV2, ) (*manager.ListWorkflowExecutionsResponse, error)
func (*VisibilityManagerDual) RecordWorkflowExecutionClosed ¶ added in v1.23.0
func (v *VisibilityManagerDual) RecordWorkflowExecutionClosed( ctx context.Context, request *manager.RecordWorkflowExecutionClosedRequest, ) error
func (*VisibilityManagerDual) RecordWorkflowExecutionStarted ¶ added in v1.23.0
func (v *VisibilityManagerDual) RecordWorkflowExecutionStarted( ctx context.Context, request *manager.RecordWorkflowExecutionStartedRequest, ) error
func (*VisibilityManagerDual) ScanWorkflowExecutions ¶ added in v1.23.0
func (v *VisibilityManagerDual) ScanWorkflowExecutions( ctx context.Context, request *manager.ListWorkflowExecutionsRequestV2, ) (*manager.ListWorkflowExecutionsResponse, error)
func (*VisibilityManagerDual) UpsertWorkflowExecution ¶ added in v1.23.0
func (v *VisibilityManagerDual) UpsertWorkflowExecution( ctx context.Context, request *manager.UpsertWorkflowExecutionRequest, ) error
func (*VisibilityManagerDual) ValidateCustomSearchAttributes ¶ added in v1.23.0
type VisibilityStoreFactory ¶ added in v1.23.0
type VisibilityStoreFactory interface { NewVisibilityStore( cfg config.CustomDatastoreConfig, r resolver.ServiceResolver, logger log.Logger, metricsHandler metrics.Handler, ) (store.VisibilityStore, error) }
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package manager is a generated GoMock package.
|
Package manager is a generated GoMock package. |
Package store is a generated GoMock package.
|
Package store is a generated GoMock package. |
elasticsearch
Package elasticsearch is a generated GoMock package.
|
Package elasticsearch is a generated GoMock package. |
elasticsearch/client
Package client is a generated GoMock package.
|
Package client is a generated GoMock package. |
query
Package query is inspired and partially copied from by github.com/cch123/elasticsql.
|
Package query is inspired and partially copied from by github.com/cch123/elasticsql. |
Click to show internal directories.
Click to hide internal directories.