metadata.go ×4

Frontier kind: Code frontier

unlabeled · c_940f3cfe22cb

16 tests · 1872 LOC · 78 files · introduces 0 tests · 38 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
7 ranges38 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
262 ranges1872 lines · 78 files · Browse complete extent
All tests (intent)
16 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: 38 introduced LOC across 7 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/common/cluster/metadata.go 26 introduced LOC · 4 ranges

Open complete file

560 ctx context.Context,
561 metadataStore persistence.ClusterMetadataManager,
562 > ) collection.Iterator[*persistence.GetClusterMetadataResponse] { metadata.go
563 > paginationFn := func(paginationToken []byte) ([]*persistence.GetClusterMetadataResponse, []byte, error) {
564 > resp, err := metadataStore.ListClusterMetadata(
565 > ctx,
566 > &persistence.ListClusterMetadataRequest{
567 > PageSize: defaultClusterMetadataPageSize,
568 > NextPageToken: paginationToken,
569 > },
570 > )
571 > if err != nil {
572 return nil, nil, err
573 }
574 > return resp.ClusterMetadata, resp.NextPageToken, nil metadata.go
575 }
576
577 > iterator := collection.NewPagingIterator(paginationFn) metadata.go
578 > return iterator
579 }
580
581 > func ClusterInformationFromDB(getClusterResp *persistence.GetClusterMetadataResponse) *ClusterInformation { metadata.go
582 > return &ClusterInformation{
583 > Enabled: getClusterResp.GetIsConnectionEnabled(),
584 > InitialFailoverVersion: getClusterResp.GetInitialFailoverVersion(),
585 > RPCAddress: getClusterResp.GetClusterAddress(),
586 > HTTPAddress: getClusterResp.GetHttpAddress(),
587 > ClusterID: getClusterResp.GetClusterId(),
588 > ShardCount: getClusterResp.GetHistoryShardCount(),
589 > Tags: getClusterResp.GetTags(),
590 > ReplicationEnabled: getClusterResp.GetIsReplicationEnabled(),
591 > version: getClusterResp.Version,
592 > }
593 > }
594
595 // ShallowCopyClusterInformation returns a shallow copy of the given ClusterInformation. The [ClusterInformation.Tags]
go.temporal.io/server/api/persistence/v1/cluster_metadata.pb.go 12 introduced LOC · 3 ranges

Open complete file

112 }
113
114 > func (x *ClusterMetadata) GetClusterAddress() string { cluster_metadata.pb.go
115 > if x != nil {
116 > return x.ClusterAddress
117 > }
118 return ""
119 }
147 }
148
149 > func (x *ClusterMetadata) GetIsConnectionEnabled() bool { cluster_metadata.pb.go
150 > if x != nil {
151 > return x.IsConnectionEnabled
152 > }
153 return false
154 }
168 }
169
170 > func (x *ClusterMetadata) GetIsReplicationEnabled() bool { cluster_metadata.pb.go
171 > if x != nil {
172 > return x.IsReplicationEnabled
173 > }
174 return false
175 }