serializer.go ×3
Frontier kind: Code frontier
unlabeled · c_51e340adc2fb
30 tests · 1761 LOC · 69 files · introduces 0 tests · 27 LOC · 3 files
Introduces — evidence that enters the hierarchy at this concept
Code
7 ranges 27 lines · 3 files
Tests
0 tests
Contains — complete concept membership
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.
Focus concept
Ancestors (broader)
Descendants (narrower)
Introduced files
Introduced tests
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.
JavaScript is disabled; use the native relationship evidence on this page to explore the same evidence.
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.
3 files ranked by introduced lines: 27 introduced LOC across 7 ranges.
Expand a file to inspect source; the > gutter marks introduced lines.
go.temporal.io/server/api/persistence/v1/executions.pb.go 14 introduced LOC · 2 ranges
Open complete file
2030
}
2031
2033
>
* x = VisibilityTaskInfo {}
2034
>
mi := & file_temporal_server_api_persistence_v1_executions_proto_msgTypes [ 10 ]
2035
>
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
2036
>
ms . StoreMessageInfo ( mi )
2037
>
}
2038
2039
func ( x * VisibilityTaskInfo ) String () string {
2043
func ( * VisibilityTaskInfo ) ProtoMessage () {}
2044
2045
>
func ( x * VisibilityTaskInfo ) ProtoReflect () protoreflect . Message {
executions.pb.go
2046
>
mi := & file_temporal_server_api_persistence_v1_executions_proto_msgTypes [ 10 ]
2047
>
if x != nil {
2048
>
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ))
2049
>
if ms . LoadMessageInfo () == nil {
2050
>
ms . StoreMessageInfo ( mi )
2051
>
}
2052
>
return ms
2053
}
2054
return mi . MessageOf ( x )
go.temporal.io/server/common/persistence/serialization/serializer.go 9 introduced LOC · 3 ranges
Open complete file
156
case tasks . CategoryIDTimer :
157
return serializeTimerTask ( t , task )
159
>
return serializeVisibilityTask ( t , task )
160
case tasks . CategoryIDReplication :
161
return serializeReplicationTask ( t , task )
642
}
643
644
>
func ( t * serializerImpl ) VisibilityTaskInfoToBlob ( info * persistencespb . VisibilityTaskInfo ) ( * commonpb . DataBlob , error ) {
serializer.go
645
>
return encodeBlob ( info , t . encodingType )
646
>
}
647
648
>
func ( t * serializerImpl ) VisibilityTaskInfoFromBlob ( data * commonpb . DataBlob ) ( * persistencespb . VisibilityTaskInfo , error ) {
serializer.go
649
>
result := & persistencespb . VisibilityTaskInfo {}
650
>
return result , Decode ( data , result )
651
>
}
652
653
func ( t * serializerImpl ) ArchivalTaskInfoToBlob ( info * persistencespb . ArchivalTaskInfo ) ( * commonpb . DataBlob , error ) {
go.temporal.io/server/common/persistence/serialization/task_serializers.go 4 introduced LOC · 2 ranges
Open complete file
274
encoder Encoder ,
275
task tasks . Task ,
277
>
var visibilityTask * persistencespb . VisibilityTaskInfo
278
>
switch task := task .( type ) {
279
case * tasks . StartExecutionVisibilityTask :
280
visibilityTask = visibilityStartTaskToProto ( task )
290
return nil , serviceerror . NewInternalf ( "Unknown visibility task type: %v" , task )
291
}
293
}
294