go.temporal.io/server/common/nexus/routes.go

35 LOC · 3 covered · 32 uncovered · 3 ranges · 8 concepts · 2 introducers · 5 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 filenexus_operation_http_handler.go ×3 · 20 introduced LOCnexus_operation_http_han…nexus_operation_http_handler.go ×1 · 2 introduced LOCnexus_operation_http_han…nexus_operation_http_handler.go ×1 · 2 introduced LOCnexus_operation_http_han…nexus_operation_http_handler.go ×4 · 13 introduced LOCnexus_operation_http_han…server.go ×1 · 2 introduced LOCserver.go ×1nexus_operation_http_handler.go ×4 · 22 introduced LOCnexus_operation_http_han…routes.go ×2 · 2 introduced LOCroutes.go ×2routes.go ×1 · 1 introduced LOCroutes.go ×1ExampleRouteDispatchNexusTaskByEndpoint · introduced test · go.temporal.io/server/common/nexus/ExampleRouteDispatchNexusTaskByEndpointExampleRouteDispatchNexu…ExampleRouteDispatchNexusTaskByNamespaceAndTaskQueue · introduced test · go.temporal.io/server/common/nexus/ExampleRouteDispatchNexusTaskByNamespaceAndTaskQueueExampleRouteDispatchNexu…TestDispatchNexusTaskByEndpoint_NamespaceNotFound_Retryable · introduced test · go.temporal.io/server/service/frontend/TestDispatchNexusTaskByEndpoint_NamespaceNotFound_RetryableTestDispatchNexusTaskByE…TestDispatchNexusTaskByEndpoint_NotFound_NonRetryable · introduced test · go.temporal.io/server/service/frontend/TestDispatchNexusTaskByEndpoint_NotFound_NonRetryableTestDispatchNexusTaskByE…TestDispatchNexusTaskByEndpoint_NotFound_Retryable · introduced test · go.temporal.io/server/service/frontend/TestDispatchNexusTaskByEndpoint_NotFound_RetryableTestDispatchNexusTaskByE…Focused file · go.temporal.io/server/common/nexus/routes.go · 35 LOCnexus/routes.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 nexus
2
3 import "go.temporal.io/server/common/routing"
4
5 type NamespaceAndTaskQueue struct {
6 Namespace string
7 TaskQueue string
8 }
9
10 var RouteDispatchNexusTaskByNamespaceAndTaskQueue = routing.NewBuilder[NamespaceAndTaskQueue]().
11 Constant("namespaces").
12 > StringVariable("namespace", func(params *NamespaceAndTaskQueue) *string { return &params.Namespace }). routes.go ×2
13 Constant("task-queues").
14 > StringVariable("task_queue", func(params *NamespaceAndTaskQueue) *string { return &params.TaskQueue }). routes.go ×2
15 Constant("nexus-services").
16 Build()
17
18 var RouteDispatchNexusTaskByEndpoint = routing.NewBuilder[string]().
19 Constant("nexus", "endpoints").
20 > StringVariable("endpoint", func(endpoint *string) *string { return endpoint }). routes.go ×1
21 Constant("services").
22 Build()
23
24 // RouteCompletionCallback is an HTTP route for completing a Nexus operation via callback.
25 var RouteCompletionCallback = routing.NewBuilder[string]().
26 Constant("namespaces").
27 StringVariable("namespace", func(namespace *string) *string { return namespace }).
28 Constant("nexus", "callback").
29 Build()
30
31 // PathCompletionCallbackNoIdentifier is an HTTP route for completing a Nexus operation via callback.
32 // Unlike RouteCompletionCallback it does not require any identifying information to be provided in the
33 // URL path. Instead the handler for this path is expected to look up identifying information through
34 // via the callback token in the headers.
35 var PathCompletionCallbackNoIdentifier = "/nexus/callback"