config

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.21.0

type Config struct {
	// Global is process-wide service-related configuration
	Global config.Global `yaml:"global"`
	// Persistence contains the configuration for temporal datastores
	Persistence Persistence `yaml:"persistence"`
	// Log is the logging config
	Log log.Config `yaml:"log"`
	// ClusterMetadata is the config containing all valid clusters and active cluster
	ClusterMetadata *cluster.Config `yaml:"clusterMetadata"`
	// DCRedirectionPolicy contains the frontend datacenter redirection policy
	DCRedirectionPolicy config.DCRedirectionPolicy `yaml:"dcRedirectionPolicy"`
	// Services is a map of service name to service config items
	Services map[string]config.Service `yaml:"services"`
	// Archival is the config for archival
	Archival config.Archival `yaml:"archival"`
	// PublicClient is config for connecting to temporal frontend
	PublicClient config.PublicClient `yaml:"publicClient"`
	// DynamicConfigClient is the config for setting up the file based dynamic config client
	// Filepath should be relative to the root directory
	DynamicConfigClient *dynamicconfig.FileBasedClientConfig `yaml:"dynamicConfigClient"`
	// NamespaceDefaults is the default config for every namespace
	NamespaceDefaults config.NamespaceDefaults `yaml:"namespaceDefaults"`
	// ExporterConfig allows the specification of process-wide OTEL exporters
	ExporterConfig telemetry.ExportConfig `yaml:"otel"`
}

Config is the configuration for the Temporal server. It wraps server config but with support for older temporal versions. Starting from Temporal 1.25, in persistence, AdvancedVisibilityStore is no longer supported.

type Persistence added in v0.21.0

type Persistence struct {
	config.Persistence `yaml:",inline"`
	// AdvancedVisibilityStore is the name of the datastore to be used for visibility records.
	AdvancedVisibilityStore string `yaml:"advancedVisibilityStore"`
}

type YamlConstrainedValue

type YamlConstrainedValue struct {
	Constraints map[string]any
	Value       any
}

type YamlDynamicConfig

type YamlDynamicConfig map[string][]YamlConstrainedValue

func DynamicConfigToYamlDynamicConfig

func DynamicConfigToYamlDynamicConfig(dc *v1beta1.DynamicConfigSpec) (YamlDynamicConfig, error)

Jump to

Keyboard shortcuts

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