executors.go ×7

Frontier kind: Code frontier

unlabeled · c_8973cdff4c09

13 tests · 2523 LOC · 128 files · introduces 0 tests · 16 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
7 ranges16 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
382 ranges2523 lines · 128 files · Browse complete extent
All tests (intent)
13 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.

1 file ranked by introduced lines: 16 introduced LOC across 7 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/components/nexusoperations/executors.go 16 introduced LOC · 7 ranges

Open complete file

131 return commonnexus.SystemCallbackURL, nil
132 }
133 > target := endpoint.GetEndpoint().GetSpec().GetTarget().GetVariant() executors.go
134 > if !useSystemCallback {
135 return buildCallbackFromTemplate(callbackTemplate, ns)
136 }
137 > switch target.(type) { executors.go
138 case *persistencespb.NexusEndpointTarget_Worker_:
139 return commonnexus.SystemCallbackURL, nil
140 > case *persistencespb.NexusEndpointTarget_External_: executors.go
141 > return buildCallbackFromTemplate(callbackTemplate, ns)
142 default:
143 return "", fmt.Errorf("unknown endpoint target type: %T", target)
145 }
146
147 > func buildCallbackFromTemplate(callbackTemplate string, ns *namespace.Namespace) (string, error) { executors.go
148 > if callbackTemplate == "unset" {
149 return "", serviceerror.NewInternalf("dynamic config %q is unset", CallbackURLTemplate.Key().String())
150 }
151 > callbackURLTemplate, err := template.New("NexusCallbackURL").Parse(callbackTemplate) executors.go
152 > if err != nil {
153 return "", fmt.Errorf("failed to parse callback URL template: %w", err)
154 }
155 > builder := &strings.Builder{} executors.go
156 > err = callbackURLTemplate.Execute(builder, struct{ NamespaceName, NamespaceID string }{
157 > NamespaceName: ns.Name().String(),
158 > NamespaceID: ns.ID().String(),
159 > })
160 > if err != nil {
161 return "", fmt.Errorf("failed to format callback URL: %w", err)
162 }
163 > return builder.String(), nil executors.go
164 }
165