Documentation ¶
Index ¶
- Variables
- func ArchivalMetadataProvider(dc *dynamicconfig.Collection, cfg *config.Config) archiver.ArchivalMetadata
- func ArchiverProviderProvider(cfg *config.Config) provider.ArchiverProvider
- func ClientBeanProvider(clientFactory client.Factory, clusterMetadata cluster.Metadata) (client.Bean, error)
- func ClientFactoryProvider(factoryProvider client.FactoryProvider, rpcFactory common.RPCFactory, ...) client.Factory
- func DCRedirectionPolicyProvider(cfg *config.Config) config.DCRedirectionPolicy
- func FrontendClientProvider(clientBean client.Bean) workflowservice.WorkflowServiceClient
- func GrpcListenerProvider(factory common.RPCFactory) net.Listener
- func HistoryBootstrapContainerProvider(logger log.SnTaggedLogger, metricsHandler metrics.MetricsHandler, ...) *archiver.HistoryBootstrapContainer
- func HistoryClientProvider(clientBean client.Bean) historyservice.HistoryServiceClient
- func MembershipMonitorProvider(lc fx.Lifecycle, clusterMetadataManager persistence.ClusterMetadataManager, ...) (membership.Monitor, error)
- func NamespaceRegistryProvider(logger log.SnTaggedLogger, metricsHandler metrics.MetricsHandler, ...) namespace.Registry
- func PersistenceConfigProvider(persistenceConfig config.Persistence, dc *dynamicconfig.Collection) *config.Persistence
- func RPCFactoryProvider(cfg *config.Config, svcName ServiceName, logger log.Logger, ...) common.RPCFactory
- func RegisterBootstrapContainer(archiverProvider provider.ArchiverProvider, serviceName ServiceName, ...) error
- func RuntimeMetricsReporterProvider(params RuntimeMetricsReporterParams) *metrics.RuntimeMetricsReporter
- func SdkClientFactoryProvider(cfg *config.Config, tlsConfigProvider encryption.TLSConfigProvider, ...) (sdk.ClientFactory, error)
- func SdkWorkerFactoryProvider() sdk.WorkerFactory
- func SearchAttributeManagerProvider(timeSource clock.TimeSource, cmMgr persistence.ClusterMetadataManager, ...) searchattribute.Manager
- func SearchAttributeProviderProvider(timeSource clock.TimeSource, cmMgr persistence.ClusterMetadataManager, ...) searchattribute.Provider
- func SnTaggedLoggerProvider(logger log.Logger, sn ServiceName) log.SnTaggedLogger
- func ThrottledLoggerProvider(logger log.SnTaggedLogger, fn ThrottledLoggerRpsFn) log.ThrottledLogger
- func TimeSourceProvider() clock.TimeSource
- func VisibilityBootstrapContainerProvider(logger log.SnTaggedLogger, metricsHandler metrics.MetricsHandler, ...) *archiver.VisibilityBootstrapContainer
- type HostName
- type InstanceID
- type MatchingClient
- type MatchingRawClient
- type NamespaceLogger
- type RuntimeMetricsReporterParams
- type ServiceName
- type ServiceNames
- type ThrottledLoggerRpsFn
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultOptions = fx.Options( fx.Provide(MembershipMonitorProvider), fx.Provide(RPCFactoryProvider), fx.Provide(ArchivalMetadataProvider), fx.Provide(ArchiverProviderProvider), fx.Provide(ThrottledLoggerProvider), fx.Provide(SdkClientFactoryProvider), fx.Provide(SdkWorkerFactoryProvider), fx.Provide(DCRedirectionPolicyProvider), )
View Source
var Module = fx.Options( persistenceClient.Module, fx.Provide(SnTaggedLoggerProvider), fx.Provide(HostNameProvider), fx.Provide(TimeSourceProvider), cluster.MetadataLifetimeHooksModule, fx.Provide(SearchAttributeProviderProvider), fx.Provide(SearchAttributeManagerProvider), fx.Provide(NamespaceRegistryProvider), namespace.RegistryLifetimeHooksModule, fx.Provide(fx.Annotate( func(p namespace.Registry) common.Pingable { return p }, fx.ResultTags(`group:"deadlockDetectorRoots"`), )), fx.Provide(serialization.NewSerializer), fx.Provide(HistoryBootstrapContainerProvider), fx.Provide(VisibilityBootstrapContainerProvider), fx.Provide(ClientFactoryProvider), fx.Provide(ClientBeanProvider), fx.Provide(FrontendClientProvider), fx.Provide(GrpcListenerProvider), fx.Provide(RuntimeMetricsReporterProvider), metrics.RuntimeMetricsReporterLifetimeHooksModule, fx.Provide(HistoryClientProvider), fx.Provide(MatchingRawClientProvider), fx.Provide(MatchingClientProvider), membership.HostInfoProviderModule, membership.GRPCResolverModule, fx.Invoke(RegisterBootstrapContainer), fx.Provide(PersistenceConfigProvider), fx.Provide(health.NewServer), deadlock.Module, )
Module Use fx.Hook and OnStart/OnStop to manage Daemon resource lifecycle See LifetimeHooksModule for detail
Functions ¶
func ArchivalMetadataProvider ¶ added in v1.13.0
func ArchivalMetadataProvider(dc *dynamicconfig.Collection, cfg *config.Config) archiver.ArchivalMetadata
func ArchiverProviderProvider ¶ added in v1.13.0
func ArchiverProviderProvider(cfg *config.Config) provider.ArchiverProvider
func ClientBeanProvider ¶ added in v1.13.0
func ClientFactoryProvider ¶ added in v1.13.0
func ClientFactoryProvider( factoryProvider client.FactoryProvider, rpcFactory common.RPCFactory, membershipMonitor membership.Monitor, metricsHandler metrics.MetricsHandler, dynamicCollection *dynamicconfig.Collection, persistenceConfig *config.Persistence, logger log.SnTaggedLogger, throttledLogger log.ThrottledLogger, ) client.Factory
func DCRedirectionPolicyProvider ¶ added in v1.16.0
func DCRedirectionPolicyProvider(cfg *config.Config) config.DCRedirectionPolicy
func FrontendClientProvider ¶ added in v1.17.0
func GrpcListenerProvider ¶ added in v1.13.0
func GrpcListenerProvider(factory common.RPCFactory) net.Listener
func HistoryBootstrapContainerProvider ¶ added in v1.13.0
func HistoryBootstrapContainerProvider( logger log.SnTaggedLogger, metricsHandler metrics.MetricsHandler, clusterMetadata cluster.Metadata, executionManager persistence.ExecutionManager, ) *archiver.HistoryBootstrapContainer
func HistoryClientProvider ¶ added in v1.14.0
func MembershipMonitorProvider ¶ added in v1.13.0
func MembershipMonitorProvider( lc fx.Lifecycle, clusterMetadataManager persistence.ClusterMetadataManager, logger log.SnTaggedLogger, cfg *config.Config, svcName ServiceName, tlsConfigProvider encryption.TLSConfigProvider, dc *dynamicconfig.Collection, ) (membership.Monitor, error)
func NamespaceRegistryProvider ¶ added in v1.14.0
func NamespaceRegistryProvider( logger log.SnTaggedLogger, metricsHandler metrics.MetricsHandler, clusterMetadata cluster.Metadata, metadataManager persistence.MetadataManager, dynamicCollection *dynamicconfig.Collection, ) namespace.Registry
func PersistenceConfigProvider ¶ added in v1.13.0
func PersistenceConfigProvider(persistenceConfig config.Persistence, dc *dynamicconfig.Collection) *config.Persistence
func RPCFactoryProvider ¶ added in v1.16.0
func RPCFactoryProvider( cfg *config.Config, svcName ServiceName, logger log.Logger, tlsConfigProvider encryption.TLSConfigProvider, dc *dynamicconfig.Collection, resolver membership.GRPCResolver, traceInterceptor telemetry.ClientTraceInterceptor, ) common.RPCFactory
func RegisterBootstrapContainer ¶ added in v1.13.0
func RegisterBootstrapContainer( archiverProvider provider.ArchiverProvider, serviceName ServiceName, visibilityArchiverBootstrapContainer *archiver.VisibilityBootstrapContainer, historyArchiverBootstrapContainer *archiver.HistoryBootstrapContainer, ) error
func RuntimeMetricsReporterProvider ¶ added in v1.13.0
func RuntimeMetricsReporterProvider( params RuntimeMetricsReporterParams, ) *metrics.RuntimeMetricsReporter
func SdkClientFactoryProvider ¶ added in v1.14.0
func SdkClientFactoryProvider( cfg *config.Config, tlsConfigProvider encryption.TLSConfigProvider, metricsHandler metrics.MetricsHandler, logger log.SnTaggedLogger, resolver membership.GRPCResolver, ) (sdk.ClientFactory, error)
func SdkWorkerFactoryProvider ¶ added in v1.17.0
func SdkWorkerFactoryProvider() sdk.WorkerFactory
func SearchAttributeManagerProvider ¶ added in v1.13.0
func SearchAttributeManagerProvider( timeSource clock.TimeSource, cmMgr persistence.ClusterMetadataManager, dynamicCollection *dynamicconfig.Collection, ) searchattribute.Manager
func SearchAttributeProviderProvider ¶ added in v1.13.0
func SearchAttributeProviderProvider( timeSource clock.TimeSource, cmMgr persistence.ClusterMetadataManager, dynamicCollection *dynamicconfig.Collection, ) searchattribute.Provider
func SnTaggedLoggerProvider ¶ added in v1.13.0
func SnTaggedLoggerProvider(logger log.Logger, sn ServiceName) log.SnTaggedLogger
func ThrottledLoggerProvider ¶ added in v1.13.0
func ThrottledLoggerProvider( logger log.SnTaggedLogger, fn ThrottledLoggerRpsFn, ) log.ThrottledLogger
func TimeSourceProvider ¶ added in v1.13.0
func TimeSourceProvider() clock.TimeSource
func VisibilityBootstrapContainerProvider ¶ added in v1.13.0
func VisibilityBootstrapContainerProvider( logger log.SnTaggedLogger, metricsHandler metrics.MetricsHandler, clusterMetadata cluster.Metadata, ) *archiver.VisibilityBootstrapContainer
Types ¶
type InstanceID ¶ added in v1.13.0
type InstanceID string
type MatchingClient ¶ added in v1.14.0
type MatchingClient matchingservice.MatchingServiceClient
func MatchingClientProvider ¶ added in v1.14.0
func MatchingClientProvider(matchingRawClient MatchingRawClient) MatchingClient
type MatchingRawClient ¶ added in v1.14.0
type MatchingRawClient matchingservice.MatchingServiceClient
func MatchingRawClientProvider ¶ added in v1.14.0
type NamespaceLogger ¶ added in v1.16.0
type RuntimeMetricsReporterParams ¶ added in v1.16.0
type RuntimeMetricsReporterParams struct { fx.In Provider metrics.MetricsHandler Logger log.SnTaggedLogger InstanceID InstanceID `optional:"true"` }
type ServiceName ¶ added in v1.13.0
type ServiceName string
type ServiceNames ¶ added in v1.16.0
type ServiceNames map[string]struct{}
type ThrottledLoggerRpsFn ¶ added in v1.13.0
Click to show internal directories.
Click to hide internal directories.