client.go ×7

Frontier kind: Code frontier

unlabeled · c_6135a7c8819d

9 tests · 243 LOC · 4 files · introduces 0 tests · 15 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
7 ranges15 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
91 ranges243 lines · 4 files · Browse complete extent
All tests (intent)
9 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.

Introduced files, introduced tests, and structurally relevant concept specializationtask_handler_helpers.go ×3 · 11 introduced LOCtask_handler_helpers.go …async_start · 0 introduced LOCasync_startoperation_tasks.go ×1 · 2 introduced LOCoperation_tasks.go ×1invocation.go ×1 · 7 introduced LOCinvocation.go ×1executors.go ×4 · 9 introduced LOCexecutors.go ×4statemachine.go ×3 · 6 introduced LOCstatemachine.go ×3async_start · 0 introduced LOCasync_startexecutors.go ×1 · 2 introduced LOCexecutors.go ×1executors.go ×1 · 7 introduced LOCexecutors.go ×1TestCancel_HandleFromStart · 0 introduced LOCTestCancel_HandleFromSta…TestAsync · 0 introduced LOCTestAsyncclient.go ×2 · 3 introduced LOCclient.go ×2server.go ×2 · 10 introduced LOCserver.go ×2server.go ×3 · 4 introduced LOCserver.go ×3client.go ×2 · 3 introduced LOCclient.go ×2server.go ×5 · 34 introduced LOCserver.go ×5client.go ×1 · 3 introduced LOCclient.go ×1server.go ×3 · 6 introduced LOCserver.go ×3client.go ×4 · 13 introduced LOCclient.go ×4client.go ×8 · 25 introduced LOCclient.go ×8server.go ×8 · 25 introduced LOCserver.go ×8client.go ×1 · 5 introduced LOCclient.go ×1api.go ×2 · 5 introduced LOCapi.go ×2api.go ×1 · 3 introduced LOCapi.go ×1client.go ×3 · 5 introduced LOCclient.go ×3client.go ×1 · 2 introduced LOCclient.go ×1api.go ×2 · 6 introduced LOCapi.go ×2client.go ×7 · 22 introduced LOCclient.go ×7server.go ×1 · 2 introduced LOCserver.go ×1server.go ×1 · 2 introduced LOCserver.go ×1server.go ×1 · 2 introduced LOCserver.go ×1server.go ×5 · 14 introduced LOCserver.go ×5api.go ×2 · 3 introduced LOCapi.go ×2api.go ×3 · 8 introduced LOCapi.go ×3api.go ×1 · 1 introduced LOCapi.go ×1api.go ×1 · 2 introduced LOCapi.go ×1api.go ×2 · 3 introduced LOCapi.go ×2client.go ×2 · 6 introduced LOCclient.go ×2api.go ×1 · 2 introduced LOCapi.go ×1api.go ×1 · 4 introduced LOCapi.go ×1api.go ×1 · 2 introduced LOCapi.go ×1failure_converter.go ×1 · 3 introduced LOCfailure_converter.go ×1TestOperatorServiceMetadata, TestWorkflowServiceMetadata · 0 introduced LOCTestOperatorServiceMetad…go.temporal.io/server/chasm/lib/nexusoperation/invocation.go · 295 LOCnexusoperation/invocatio…go.temporal.io/server/chasm/lib/nexusoperation/operation_tasks.go · 413 LOCnexusoperation/operation…go.temporal.io/server/chasm/lib/nexusoperation/task_handler_helpers.go · 380 LOCnexusoperation/task_hand…go.temporal.io/server/common/nexus/nexusrpc/api.go · 295 LOCnexusrpc/api.gogo.temporal.io/server/common/nexus/nexusrpc/client.go · 502 LOCnexusrpc/client.gogo.temporal.io/server/common/nexus/nexusrpc/failure_converter.go · 213 LOCnexusrpc/failure_convert…go.temporal.io/server/common/nexus/nexusrpc/server.go · 404 LOCnexusrpc/server.gogo.temporal.io/server/components/nexusoperations/executors.go · 1250 LOCnexusoperations/executor…go.temporal.io/server/components/nexusoperations/statemachine.go · 682 LOCnexusoperations/statemac…async_start · introduced test · go.temporal.io/server/chasm/lib/nexusoperation/TestInvocationTaskHandler_HTTP/async_startasync_startoperation_timeout_header_set_by_StartToCloseTimeout · introduced test · go.temporal.io/server/chasm/lib/nexusoperation/TestInvocationTaskHandler_HTTP/operation_timeout_header_set_by_StartToCloseTimeoutoperation_timeout_header…token_too_long · introduced test · go.temporal.io/server/chasm/lib/nexusoperation/TestInvocationTaskHandler_HTTP/token_too_longtoken_too_longTestOperatorServiceMetadata · introduced test · go.temporal.io/server/common/api/TestOperatorServiceMetadataTestOperatorServiceMetad…TestWorkflowServiceMetadata · introduced test · go.temporal.io/server/common/api/TestWorkflowServiceMetadataTestWorkflowServiceMetad…TestAsync · introduced test · go.temporal.io/server/common/nexus/nexusrpc/TestAsyncTestAsyncTestCancel_HandleFromStart · introduced test · go.temporal.io/server/common/nexus/nexusrpc/TestCancel_HandleFromStartTestCancel_HandleFromSta…async_start · introduced test · go.temporal.io/server/components/nexusoperations/TestProcessInvocationTask/async_startasync_startcancel_before_start · introduced test · go.temporal.io/server/components/nexusoperations/TestProcessInvocationTask/cancel_before_startcancel_before_startoperation_timeout_header_set_by_StartToCloseTimeout · introduced test · go.temporal.io/server/components/nexusoperations/TestProcessInvocationTask/operation_timeout_header_set_by_StartToCloseTimeoutoperation_timeout_header…token_to_long · introduced test · go.temporal.io/server/components/nexusoperations/TestProcessInvocationTask/token_to_longtoken_to_longFocused concept · client.go ×7 · 15 introduced LOCclient.go ×7

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: 15 introduced LOC across 7 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/common/nexus/nexusrpc/client.go 15 introduced LOC · 7 ranges

Open complete file

328
329 switch response.StatusCode {
330 > case http.StatusCreated: client.go
331 > info, err := operationInfoFromResponse(response, body)
332 > if err != nil {
333 return nil, err
334 }
335 > if info.State != nexus.OperationStateRunning { client.go
336 return nil, newUnexpectedResponseError(fmt.Sprintf("invalid operation state in response info: %q", info.State), response, body)
337 }
338 > handle, err := c.NewOperationHandle(operation, info.Token) client.go
339 > if err != nil {
340 return nil, newUnexpectedResponseError("empty operation token in response", response, body)
341 }
342 > return &ClientStartOperationResponse[*nexus.LazyValue]{ client.go
343 > Pending: handle,
344 > Links: links,
345 > }, nil
346 case statusOperationUnsuccessful:
347 failure, err := c.failureFromResponse(response, body)
412 }
413
414 > func operationInfoFromResponse(response *http.Response, body []byte) (*nexus.OperationInfo, error) { client.go
415 > if !isMediaTypeJSON(response.Header.Get("Content-Type")) {
416 return nil, newUnexpectedResponseError(fmt.Sprintf("invalid response content type: %q", response.Header.Get("Content-Type")), response, body)
417 }
418 > var info nexus.OperationInfo client.go
419 > if err := json.Unmarshal(body, &info); err != nil {
420 return nil, err
421 }
422 > return &info, nil client.go
423 }
424