service_grpc.pb.mock.go ×3

Frontier kind: Code frontier

unlabeled · c_606f2d96dc38

21 tests · 3318 LOC · 151 files · introduces 0 tests · 50 LOC · 4 files

Introduces — evidence that enters the hierarchy at this concept

Code
6 ranges50 lines · 4 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
449 ranges3318 lines · 151 files · Browse complete extent
All tests (intent)
21 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.

4 files ranked by introduced lines: 50 introduced LOC across 6 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/history/replication/stream_sender.go 28 introduced LOC · 1 range

Open complete file

78 serverShardKey ClusterShardKey,
79 config *configs.Config,
80 > ) *StreamSenderImpl { stream_sender.go
81 > logger := log.With(
82 > shardContext.GetLogger(),
83 > tag.TargetCluster(clientClusterName), // client is the target cluster (passive cluster)
84 > tag.TargetShardID(clientShardKey.ShardID),
85 > tag.ShardID(serverShardKey.ShardID), // server is the source cluster (active cluster)
86 > tag.Operation("replication-stream-sender"),
87 > )
88 > return &StreamSenderImpl{
89 > server: server,
90 > shardContext: shardContext,
91 > historyEngine: historyEngine,
92 > taskConverter: taskConverter,
93 > metrics: shardContext.GetMetricsHandler(),
94 > logger: logger,
95 > status: common.DaemonStatusInitialized,
96 > clientClusterName: clientClusterName,
97 > clientShardKey: clientShardKey,
98 > serverShardKey: serverShardKey,
99 > clientClusterShardCount: clientClusterShardCount,
100 > recvSignalChan: make(chan struct{}, 1),
101 > shutdownChan: channel.NewShutdownOnce(),
102 > config: config,
103 > isTieredStackEnabled: config.EnableReplicationTaskTieredProcessing(),
104 > flowController: NewSenderFlowController(config, logger),
105 > ssRateLimiter: ssRateLimiter,
106 > }
107 > }
108
109 func (s *StreamSenderImpl) Start() {
go.temporal.io/server/api/historyservicemock/v1/service_grpc.pb.mock.go 12 introduced LOC · 3 ranges

Open complete file

2961
2962 // NewMockHistoryService_StreamWorkflowReplicationMessagesServer creates a new mock instance.
2963 > func NewMockHistoryService_StreamWorkflowReplicationMessagesServer(ctrl *gomock.Controller) *MockHistoryService_StreamWorkflowReplicationMessagesServer { service_grpc.pb.mock.go
2964 > mock := &MockHistoryService_StreamWorkflowReplicationMessagesServer{ctrl: ctrl}
2965 > mock.recorder = &MockHistoryService_StreamWorkflowReplicationMessagesServerMockRecorder{mock}
2966 > return mock
2967 > }
2968
2969 // EXPECT returns an object that allows the caller to indicate expected use.
2970 > func (m *MockHistoryService_StreamWorkflowReplicationMessagesServer) EXPECT() *MockHistoryService_StreamWorkflowReplicationMessagesServerMockRecorder { service_grpc.pb.mock.go
2971 > return m.recorder
2972 > }
2973
2974 // Context mocks base method.
2981
2982 // Context indicates an expected call of Context.
2983 > func (mr *MockHistoryService_StreamWorkflowReplicationMessagesServerMockRecorder) Context() *gomock.Call { service_grpc.pb.mock.go
2984 > mr.mock.ctrl.T.Helper()
2985 > return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Context", reflect.TypeOf((*MockHistoryService_StreamWorkflowReplicationMessagesServer)(nil).Context))
2986 > }
2987
2988 // Recv mocks base method.
go.temporal.io/server/service/history/replication/raw_task_converter_mock.go 5 introduced LOC · 1 range

Open complete file

32
33 // NewMockSourceTaskConverter creates a new mock instance.
34 > func NewMockSourceTaskConverter(ctrl *gomock.Controller) *MockSourceTaskConverter { raw_task_converter_mock.go
35 > mock := &MockSourceTaskConverter{ctrl: ctrl}
36 > mock.recorder = &MockSourceTaskConverterMockRecorder{mock}
37 > return mock
38 > }
39
40 // EXPECT returns an object that allows the caller to indicate expected use.
go.temporal.io/server/service/history/replication/stream_sender_flow_controller_mock.go 5 introduced LOC · 1 range

Open complete file

32
33 // NewMockSenderFlowController creates a new mock instance.
34 > func NewMockSenderFlowController(ctrl *gomock.Controller) *MockSenderFlowController { stream_sender_flow_controller_mock.go
35 > mock := &MockSenderFlowController{ctrl: ctrl}
36 > mock.recorder = &MockSenderFlowControllerMockRecorder{mock}
37 > return mock
38 > }
39
40 // EXPECT returns an object that allows the caller to indicate expected use.