go.temporal.io/server/common/config/fx.go

34 LOC · 14 covered · 20 uncovered · 4 ranges · 42 concepts · 1 introducers · 11 tests

File neighbourhood

The centred file is linked to every concept that introduces one of its ranges, every test that runs code from the file, and the gray connector concepts standing between those tests and the file's own introducer concepts. Undirected links join concepts to every file where they introduce source and concepts to the tests they introduce; arrows show specialization between the displayed concepts and bridge only concepts omitted from this view. Concept colors match the source ranges below; connector concepts have no source color and are shown in gray.

Focused file, its introducer and connector concepts, their introduced files, and tests that run code from the file

In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the related-file, concept, and source links on this page.

Focused file, its introducer and connector concepts, their introduced files, and tests that run code from the filego.temporal.io/server/client/clientfactory.go · 245 LOCclient/clientfactory.gogo.temporal.io/server/client/matching/client.go · 535 LOCmatching/client.gogo.temporal.io/server/client/matching/client_gen.go · 702 LOCmatching/client_gen.gogo.temporal.io/server/client/matching/metric_client.go · 263 LOCmatching/metric_client.g…go.temporal.io/server/common/config/archival.go · 42 LOCconfig/archival.gogo.temporal.io/server/common/config/config.go · 879 LOCconfig/config.gogo.temporal.io/server/common/config/persistence.go · 323 LOCconfig/persistence.gogo.temporal.io/server/common/dynamicconfig/collection.go · 779 LOCdynamicconfig/collection…go.temporal.io/server/common/membership/ringpop/factory.go · 270 LOCringpop/factory.gogo.temporal.io/server/common/membership/ringpop/fx.go · 32 LOCringpop/fx.gogo.temporal.io/server/common/membership/ringpop/monitor.go · 484 LOCringpop/monitor.gogo.temporal.io/server/common/membership/ringpop/service_resolver.go · 533 LOCringpop/service_resolver…go.temporal.io/server/common/persistence/cassandra/version_checker.go · 62 LOCcassandra/version_checke…go.temporal.io/server/common/persistence/persistence_rate_limited_clients.go · 1186 LOCpersistence/persistence_…go.temporal.io/server/common/persistence/sql/sqlplugin/sqlite/db.go · 125 LOCsqlite/db.gogo.temporal.io/server/common/pprof/fx.go · 31 LOCpprof/fx.gogo.temporal.io/server/common/pprof/pprof.go · 66 LOCpprof/pprof.gogo.temporal.io/server/common/resource/fx.go · 533 LOCresource/fx.gogo.temporal.io/server/common/rpc/encryption/local_store_tls_provider.go · 506 LOCencryption/local_store_t…go.temporal.io/server/common/rpc/interceptor/dc_redirection_policy.go · 221 LOCinterceptor/dc_redirecti…go.temporal.io/server/common/rpc/rpc.go · 413 LOCrpc/rpc.gogo.temporal.io/server/service/frontend/fx.go · 1057 LOCfrontend/fx.gogo.temporal.io/server/service/history/fx.go · 529 LOChistory/fx.gogo.temporal.io/server/service/matching/fx.go · 268 LOCmatching/fx.gogo.temporal.io/server/service/worker/fx.go · 231 LOCworker/fx.gogo.temporal.io/server/temporal/fx.go · 1273 LOCtemporal/fx.gogo.temporal.io/server/temporal/server.go · 46 LOCtemporal/server.gogo.temporal.io/server/temporal/server_impl.go · 198 LOCtemporal/server_impl.gogo.temporal.io/server/temporal/server_option.go · 227 LOCtemporal/server_option.g…go.temporal.io/server/temporal/server_options.go · 139 LOCtemporal/server_options.…workflow_handler.go ×11 · 117 introduced LOCworkflow_handler.go ×11common.go ×1 · 11 introduced LOCcommon.go ×1request_response.pb.go ×6 · 246 introduced LOCrequest_response.pb.go ×…visibility_store.go ×17 · 171 introduced LOCvisibility_store.go ×17telemetry.go ×2 · 15 introduced LOCtelemetry.go ×2fx.go ×1 · 4 introduced LOCfx.go ×1collector.go ×7 · 33 introduced LOCcollector.go ×7data_store_factory.go ×29 · 703 introduced LOCdata_store_factory.go ×2…TestNewServer · 0 introduced LOCTestNewServerpri_matcher.go ×1 · 2 introduced LOCpri_matcher.go ×1timer_queue_active_task_executor.go ×1 · 3 introduced LOCtimer_queue_active_task_…TestNewServer · 0 introduced LOCTestNewServermetric_client.go ×3 · 18 introduced LOCmetric_client.go ×3request_response.pb.go ×12 · 137 introduced LOCrequest_response.pb.go ×…workflow_task_completed_handler.go ×9 · 75 introduced LOCworkflow_task_completed_…pri_forwarder.go ×2 · 4 introduced LOCpri_forwarder.go ×2request_response.pb.go ×1 · 7 introduced LOCrequest_response.pb.go ×…logger.go ×1 · 5 introduced LOClogger.go ×1connections.go ×1 · 9 introduced LOCconnections.go ×1persistence_rate_limited_clients.go ×2 · 17 introduced LOCpersistence_rate_limited…logger.go ×1 · 2 introduced LOClogger.go ×1metric_client.go ×2 · 7 introduced LOCmetric_client.go ×2pri_matcher.go ×1 · 4 introduced LOCpri_matcher.go ×1task_queue_partition_manager.go ×2 · 10 introduced LOCtask_queue_partition_man…connections.go ×2 · 12 introduced LOCconnections.go ×2workflow_handler.go ×8 · 144 introduced LOCworkflow_handler.go ×8pri_matcher.go ×1 · 2 introduced LOCpri_matcher.go ×1handler.go ×1 · 20 introduced LOChandler.go ×1pri_matcher.go ×8 · 55 introduced LOCpri_matcher.go ×8matching_engine.go ×1 · 8 introduced LOCmatching_engine.go ×1server.go ×1 · 3 introduced LOCserver.go ×1logger.go ×2 · 21 introduced LOClogger.go ×2queue_scheduled.go ×1 · 2 introduced LOCqueue_scheduled.go ×1handler.go ×25 · 728 introduced LOChandler.go ×25endpoint_registry.go ×2 · 26 introduced LOCendpoint_registry.go ×2server.go ×3 · 13 introduced LOCserver.go ×3scanner.go ×1 · 2 introduced LOCscanner.go ×1mask_internal_error.go ×1 · 2 introduced LOCmask_internal_error.go ×…matching_engine.go ×2 · 5 introduced LOCmatching_engine.go ×2service_resolver.go ×4 · 49 introduced LOCservice_resolver.go ×4lite_server.go ×25 · 303 introduced LOClite_server.go ×25fx.go ×44 · 705 introduced LOCfx.go ×44TestNewServer · introduced test · go.temporal.io/server/temporal/TestNewServerTestNewServerTestNewServerWithJSONEncoding · introduced test · go.temporal.io/server/temporal/TestNewServerWithJSONEncodingTestNewServerWithJSONEnc…with_OTEL_Collector_running · introduced test · go.temporal.io/server/temporal/TestNewServerWithOTEL/with_OTEL_Collector_runningwith_OTEL_Collector_runn…without_OTEL_Collector_running · introduced test · go.temporal.io/server/temporal/TestNewServerWithOTEL/without_OTEL_Collector_runningwithout_OTEL_Collector_r…ExampleNewServer · introduced test · go.temporal.io/server/temporaltest/ExampleNewServerExampleNewServerTestBaseServerOptions · introduced test · go.temporal.io/server/temporaltest/TestBaseServerOptionsTestBaseServerOptionsTestClientWithCustomInterceptor · introduced test · go.temporal.io/server/temporaltest/TestClientWithCustomInterceptorTestClientWithCustomInte…TestDefaultWorkerOptions · introduced test · go.temporal.io/server/temporaltest/TestDefaultWorkerOptionsTestDefaultWorkerOptionsTestNewServer · introduced test · go.temporal.io/server/temporaltest/TestNewServerTestNewServerTestNewWorkerWithOptions · introduced test · go.temporal.io/server/temporaltest/TestNewWorkerWithOptionsTestNewWorkerWithOptionsTestSearchAttributeRegistration · introduced test · go.temporal.io/server/temporaltest/TestSearchAttributeRegistrationTestSearchAttributeRegis…Focused file · go.temporal.io/server/common/config/fx.go · 34 LOCconfig/fx.go

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the related-file, concept, and source links on this page while the interactive map is unavailable.

1 package config
2
3 import (
4 "go.temporal.io/server/common/primitives"
5 "go.uber.org/fx"
6 )
7
8 // ServicePortMap contains the gRPC ports for our services.
9 type ServicePortMap map[primitives.ServiceName]int
10
11 var Module = fx.Provide(
12 provideRPCConfig,
13 provideMembershipConfig,
14 provideServicePortMap,
15 )
16
17 > func provideRPCConfig(cfg *Config, svcName primitives.ServiceName) *RPC { fx.go ×44
18 > c := cfg.Services[string(svcName)].RPC
19 >
20 > return &c
21 > }
22
23 > func provideMembershipConfig(cfg *Config) *Membership { fx.go ×44
24 > return &cfg.Global.Membership
25 > }
26
27 > func provideServicePortMap(cfg *Config) ServicePortMap { fx.go ×44
28 > servicePortMap := make(ServicePortMap)
29 > for sn, sc := range cfg.Services {
30 > servicePortMap[primitives.ServiceName(sn)] = sc.RPC.GRPCPort
31 > }
32
33 > return servicePortMap fx.go ×44
34 }