serializer.go ×2

Frontier kind: Code frontier

unlabeled · c_5f1ae0e19a2e

44 tests · 1751 LOC · 69 files · introduces 0 tests · 17 LOC · 3 files

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges17 lines · 3 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
261 ranges1751 lines · 69 files · Browse complete extent
All tests (intent)
44 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.

3 files ranked by introduced lines: 17 introduced LOC across 5 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/api/persistence/v1/executions.pb.go 8 introduced LOC · 1 range

Open complete file

2216 func (*TimerTaskInfo) ProtoMessage() {}
2217
2218 > func (x *TimerTaskInfo) ProtoReflect() protoreflect.Message { executions.pb.go
2219 > mi := &file_temporal_server_api_persistence_v1_executions_proto_msgTypes[11]
2220 > if x != nil {
2221 > ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
2222 > if ms.LoadMessageInfo() == nil {
2223 > ms.StoreMessageInfo(mi)
2224 > }
2225 > return ms
2226 }
2227 return mi.MessageOf(x)
go.temporal.io/server/common/persistence/serialization/serializer.go 5 introduced LOC · 2 ranges

Open complete file

154 case tasks.CategoryIDTransfer:
155 return serializeTransferTask(t, task)
156 > case tasks.CategoryIDTimer: serializer.go
157 > return serializeTimerTask(t, task)
158 case tasks.CategoryIDVisibility:
159 return serializeVisibilityTask(t, task)
624 }
625
626 > func (t *serializerImpl) TimerTaskInfoToBlob(info *persistencespb.TimerTaskInfo) (*commonpb.DataBlob, error) { serializer.go
627 > return encodeBlob(info, t.encodingType)
628 > }
629
630 func (t *serializerImpl) TimerTaskInfoFromBlob(data *commonpb.DataBlob) (*persistencespb.TimerTaskInfo, error) {
go.temporal.io/server/common/persistence/serialization/task_serializers.go 4 introduced LOC · 2 ranges

Open complete file

110 encoder Encoder,
111 task tasks.Task,
112 > ) (*commonpb.DataBlob, error) { task_serializers.go
113 > var timerTask *persistencespb.TimerTaskInfo
114 > switch task := task.(type) {
115 case *tasks.WorkflowTaskTimeoutTask:
116 timerTask = timerWorkflowTaskToProto(task)
140 return nil, serviceerror.NewInternalf("Unknown timer task type: %v", task)
141 }
142 > return encoder.TimerTaskInfoToBlob(timerTask) task_serializers.go
143 }
144