nexus_endpoint_store.go ×9

Frontier kind: Code frontier

unlabeled · c_0e607f78ea55

22 tests · 3018 LOC · 153 files · introduces 0 tests · 20 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
9 ranges20 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
464 ranges3018 lines · 153 files · Browse complete extent
All tests (intent)
22 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: 20 introduced LOC across 9 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/common/persistence/sql/nexus_endpoint_store.go 20 introduced LOC · 9 ranges

Open complete file

118 ctx context.Context,
119 request *p.ListNexusEndpointsRequest,
120 > ) (*p.InternalListNexusEndpointsResponse, error) { nexus_endpoint_store.go
121 > lastID := emptyID
122 > if len(request.NextPageToken) > 0 {
123 token, err := deserializePageTokenJson[listEndpointsNextPageToken](request.NextPageToken)
124 if err != nil {
128 }
129
130 > var response p.InternalListNexusEndpointsResponse nexus_endpoint_store.go
131 > var rows []sqlplugin.NexusEndpointsRow
132 > retErr := s.txExecute(ctx, "ListNexusEndpoints", func(tx sqlplugin.Tx) error {
133 > curTableVersion, err := tx.GetNexusEndpointsTableVersion(ctx)
134 > if err != nil {
135 return err
136 }
137 > response.TableVersion = curTableVersion nexus_endpoint_store.go
138 > if request.LastKnownTableVersion != 0 && request.LastKnownTableVersion != curTableVersion {
139 return p.ErrNexusTableVersionConflict
140 }
141
142 > if request.PageSize > 0 { nexus_endpoint_store.go
143 // PageSize could be zero when fetching just the table version.
144 rows, err = tx.ListNexusEndpoints(ctx, &sqlplugin.ListNexusEndpointsRequest{
148 }
149
150 > return err nexus_endpoint_store.go
151 })
152
153 > if retErr != nil { nexus_endpoint_store.go
154 return &response, retErr
155 }
156
157 > var nextPageToken []byte nexus_endpoint_store.go
158 > if len(rows) > 0 && len(rows) == request.PageSize {
159 // len(rows) could be zero when fetching just the table version.
160 nextPageToken, retErr = serializePageTokenJson(&listEndpointsNextPageToken{
166 }
167 }
168 > response.NextPageToken = nextPageToken nexus_endpoint_store.go
169 >
170 > response.Endpoints = make([]p.InternalNexusEndpoint, len(rows))
171 > for i, row := range rows {
172 response.Endpoints[i].ID = primitives.UUIDString(row.ID)
173 response.Endpoints[i].Version = row.Version