visibility

package
v1.22.5-rc1 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: MIT Imports: 30 Imported by: 1

Documentation

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 AllowListForValidation(storeNames []string) bool

func DefaultAdvancedVisibilityWritingMode added in v1.13.0

func DefaultAdvancedVisibilityWritingMode(advancedVisibilityConfigExist bool) string

DefaultAdvancedVisibilityWritingMode returns default advancedVisibilityWritingMode based on whether related config exists in static config file.

func GetEnableReadFromSecondaryVisibilityConfig added in v1.21.0

func GetEnableReadFromSecondaryVisibilityConfig(
	dc *dynamicconfig.Collection,
	visibilityStoreConfigExists bool,
	advancedVisibilityStoreConfigExists bool,
) dynamicconfig.BoolPropertyFnWithNamespaceFilter

func GetSecondaryVisibilityWritingModeConfig added in v1.21.0

func GetSecondaryVisibilityWritingModeConfig(
	dc *dynamicconfig.Collection,
	visibilityStoreConfigExists bool,
	advancedVisibilityStoreConfigExists bool,
) dynamicconfig.StringPropertyFn

func GetVisibilityPersistenceMaxReadQPS added in v1.21.0

func GetVisibilityPersistenceMaxReadQPS(
	dc *dynamicconfig.Collection,
	advancedVisibilityStoreConfigExists bool,
) dynamicconfig.IntPropertyFn

func GetVisibilityPersistenceMaxWriteQPS added in v1.21.0

func GetVisibilityPersistenceMaxWriteQPS(
	dc *dynamicconfig.Collection,
	advancedVisibilityStoreConfigExists bool,
) dynamicconfig.IntPropertyFn

func NewManager added in v1.13.0

func NewManager(
	persistenceCfg config.Persistence,
	persistenceResolver resolver.ServiceResolver,

	esClient esclient.Client,
	esProcessorConfig *elasticsearch.ProcessorConfig,
	searchAttributesProvider searchattribute.Provider,
	searchAttributesMapperProvider searchattribute.MapperProvider,

	maxReadQPS dynamicconfig.IntPropertyFn,
	maxWriteQPS dynamicconfig.IntPropertyFn,
	operatorRPSRatio dynamicconfig.FloatPropertyFn,
	enableReadFromSecondaryVisibility dynamicconfig.BoolPropertyFnWithNamespaceFilter,
	secondaryVisibilityWritingMode dynamicconfig.StringPropertyFn,
	visibilityDisableOrderByClause dynamicconfig.BoolPropertyFnWithNamespaceFilter,
	visibilityEnableManualPagination dynamicconfig.BoolPropertyFnWithNamespaceFilter,

	metricsHandler metrics.Handler,
	logger log.Logger,
) (manager.VisibilityManager, error)

func NewVisibilityManagerDual added in v1.13.0

func NewVisibilityManagerDual(
	visibilityManager manager.VisibilityManager,
	secondaryVisibilityManager manager.VisibilityManager,
	managerSelector managerSelector,
) *visibilityManagerDual

NewVisibilityManagerDual create a visibility manager that operate on multiple manager implementations based on dynamic config.

func NewVisibilityManagerMetrics added in v1.13.0

func NewVisibilityManagerMetrics(
	delegate manager.VisibilityManager,
	metricHandler metrics.Handler,
	logger log.Logger,
	visibilityTypeMetricsTag 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

This section is empty.

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