visibility

package
v1.26.2-121.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2024 License: MIT Imports: 32 Imported by: 1

Documentation

Overview

Package visibility is a generated GoMock package.

Index

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 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,
	namespaceRegistry namespace.Registry,

	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 NewVisibilityManagerMetrics(
	delegate manager.VisibilityManager,
	metricHandler metrics.Handler,
	logger log.Logger,
	visibilityPluginNameMetricsTag metrics.Tag,
	visibilityIndexNameMetricsTag metrics.Tag,
) *visibilityManagerMetrics

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

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 (*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 (*VisibilityManagerDual) HasStoreName added in v1.23.0

func (v *VisibilityManagerDual) HasStoreName(stName string) bool

func (*VisibilityManagerDual) ListWorkflowExecutions added in v1.23.0

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 (*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

func (v *VisibilityManagerDual) ValidateCustomSearchAttributes(
	searchAttributes map[string]any,
) (map[string]any, error)

type VisibilityStoreFactory added in v1.23.0

type VisibilityStoreFactory interface {
	NewVisibilityStore(
		cfg config.CustomDatastoreConfig,
		saProvider searchattribute.Provider,
		saMapperProvider searchattribute.MapperProvider,
		nsRegistry namespace.Registry,
		r resolver.ServiceResolver,
		logger log.Logger,
		metricsHandler metrics.Handler,
	) (store.VisibilityStore, error)
}

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.
sql

Jump to

Keyboard shortcuts

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