factory.go ×6

Frontier kind: Code frontier

unlabeled · c_fe4f48b4329e

14 tests · 1964 LOC · 86 files · introduces 0 tests · 20 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
8 ranges20 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
294 ranges1964 lines · 86 files · Browse complete extent
All tests (intent)
14 testsBrowse complete intent

Neighbourhood graph

The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.

Introduced files, introduced tests, and structurally relevant concept specialization

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 native relationship evidence on this page.

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.

Native relationship evidence

Every exact file and test below is linked only from the concept that introduces it.

Introduced tests

Every collected test enters the hierarchy at exactly one concept.

No tests are introduced at this concept. Its intent tests are introduced by other concepts.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

2 files ranked by introduced lines: 20 introduced LOC across 8 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/common/membership/ringpop/factory.go 14 introduced LOC · 6 ranges

Open complete file

148 }
149
150 > func (factory *factory) getTChannel() *tchannel.Channel { factory.go
151 > factory.chOnce.Do(func() {
152 > ringpopServiceName := fmt.Sprintf("%v-ringpop", factory.ServiceName)
153 > ringpopHostAddress := net.JoinHostPort(factory.getListenIP().String(), convert.IntToString(factory.RPCConfig.MembershipPort))
154 > enableTLS := dynamicconfig.EnableRingpopTLS.Get(factory.DC)()
155 >
156 > var tChannel *tchannel.Channel
157 > if enableTLS {
158 tChannel = factory.getTLSChannel(ringpopHostAddress, ringpopServiceName)
159 > } else { factory.go
160 tChannel = factory.getTCPChannel(ringpopHostAddress, ringpopServiceName)
161 }
162 > factory.channel = tChannel factory.go
163 })
164
165 > return factory.channel factory.go
166 }
167
211 }
212
213 > func (factory *factory) getListenIP() net.IP { factory.go
214 > if factory.RPCConfig.BindOnLocalHost && len(factory.RPCConfig.BindOnIP) > 0 {
215 factory.Logger.Fatal("ListenIP failed, bindOnLocalHost and bindOnIP are mutually exclusive")
216 return nil
217 }
218
219 > if factory.RPCConfig.BindOnLocalHost { factory.go
220 return net.ParseIP(environment.GetLocalhostIP())
221 }
go.temporal.io/server/common/rpc/encryption/local_store_tls_provider.go 6 introduced LOC · 2 ranges

Open complete file

172 }
173
174 > func (s *localStoreTlsProvider) GetInternodeServerConfig() (*tls.Config, error) { local_store_tls_provider.go
175 > return s.getOrCreateConfig(
176 > &s.cachedInternodeServerConfig,
177 > func() (*tls.Config, error) {
178 return newServerTLSConfig(s.internodeCertProvider, nil, &s.settings.Internode, s.logger)
179 },
216 configConstructor tlsConfigConstructor,
217 isEnabled bool,
218 > ) (*tls.Config, error) { local_store_tls_provider.go
219 > if !isEnabled {
220 return nil, nil
221 }