-
Notifications
You must be signed in to change notification settings - Fork 23
/
replication_grpc.pb.go
545 lines (482 loc) · 19.4 KB
/
replication_grpc.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.2.0
// - protoc v3.21.12
// source: replication.proto
package proto
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
// OxiaCoordinationClient is the client API for OxiaCoordination service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type OxiaCoordinationClient interface {
PushShardAssignments(ctx context.Context, opts ...grpc.CallOption) (OxiaCoordination_PushShardAssignmentsClient, error)
NewTerm(ctx context.Context, in *NewTermRequest, opts ...grpc.CallOption) (*NewTermResponse, error)
BecomeLeader(ctx context.Context, in *BecomeLeaderRequest, opts ...grpc.CallOption) (*BecomeLeaderResponse, error)
AddFollower(ctx context.Context, in *AddFollowerRequest, opts ...grpc.CallOption) (*AddFollowerResponse, error)
GetStatus(ctx context.Context, in *GetStatusRequest, opts ...grpc.CallOption) (*GetStatusResponse, error)
DeleteShard(ctx context.Context, in *DeleteShardRequest, opts ...grpc.CallOption) (*DeleteShardResponse, error)
}
type oxiaCoordinationClient struct {
cc grpc.ClientConnInterface
}
func NewOxiaCoordinationClient(cc grpc.ClientConnInterface) OxiaCoordinationClient {
return &oxiaCoordinationClient{cc}
}
func (c *oxiaCoordinationClient) PushShardAssignments(ctx context.Context, opts ...grpc.CallOption) (OxiaCoordination_PushShardAssignmentsClient, error) {
stream, err := c.cc.NewStream(ctx, &OxiaCoordination_ServiceDesc.Streams[0], "/replication.OxiaCoordination/PushShardAssignments", opts...)
if err != nil {
return nil, err
}
x := &oxiaCoordinationPushShardAssignmentsClient{stream}
return x, nil
}
type OxiaCoordination_PushShardAssignmentsClient interface {
Send(*ShardAssignments) error
CloseAndRecv() (*CoordinationShardAssignmentsResponse, error)
grpc.ClientStream
}
type oxiaCoordinationPushShardAssignmentsClient struct {
grpc.ClientStream
}
func (x *oxiaCoordinationPushShardAssignmentsClient) Send(m *ShardAssignments) error {
return x.ClientStream.SendMsg(m)
}
func (x *oxiaCoordinationPushShardAssignmentsClient) CloseAndRecv() (*CoordinationShardAssignmentsResponse, error) {
if err := x.ClientStream.CloseSend(); err != nil {
return nil, err
}
m := new(CoordinationShardAssignmentsResponse)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func (c *oxiaCoordinationClient) NewTerm(ctx context.Context, in *NewTermRequest, opts ...grpc.CallOption) (*NewTermResponse, error) {
out := new(NewTermResponse)
err := c.cc.Invoke(ctx, "/replication.OxiaCoordination/NewTerm", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *oxiaCoordinationClient) BecomeLeader(ctx context.Context, in *BecomeLeaderRequest, opts ...grpc.CallOption) (*BecomeLeaderResponse, error) {
out := new(BecomeLeaderResponse)
err := c.cc.Invoke(ctx, "/replication.OxiaCoordination/BecomeLeader", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *oxiaCoordinationClient) AddFollower(ctx context.Context, in *AddFollowerRequest, opts ...grpc.CallOption) (*AddFollowerResponse, error) {
out := new(AddFollowerResponse)
err := c.cc.Invoke(ctx, "/replication.OxiaCoordination/AddFollower", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *oxiaCoordinationClient) GetStatus(ctx context.Context, in *GetStatusRequest, opts ...grpc.CallOption) (*GetStatusResponse, error) {
out := new(GetStatusResponse)
err := c.cc.Invoke(ctx, "/replication.OxiaCoordination/GetStatus", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *oxiaCoordinationClient) DeleteShard(ctx context.Context, in *DeleteShardRequest, opts ...grpc.CallOption) (*DeleteShardResponse, error) {
out := new(DeleteShardResponse)
err := c.cc.Invoke(ctx, "/replication.OxiaCoordination/DeleteShard", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// OxiaCoordinationServer is the server API for OxiaCoordination service.
// All implementations must embed UnimplementedOxiaCoordinationServer
// for forward compatibility
type OxiaCoordinationServer interface {
PushShardAssignments(OxiaCoordination_PushShardAssignmentsServer) error
NewTerm(context.Context, *NewTermRequest) (*NewTermResponse, error)
BecomeLeader(context.Context, *BecomeLeaderRequest) (*BecomeLeaderResponse, error)
AddFollower(context.Context, *AddFollowerRequest) (*AddFollowerResponse, error)
GetStatus(context.Context, *GetStatusRequest) (*GetStatusResponse, error)
DeleteShard(context.Context, *DeleteShardRequest) (*DeleteShardResponse, error)
mustEmbedUnimplementedOxiaCoordinationServer()
}
// UnimplementedOxiaCoordinationServer must be embedded to have forward compatible implementations.
type UnimplementedOxiaCoordinationServer struct {
}
func (UnimplementedOxiaCoordinationServer) PushShardAssignments(OxiaCoordination_PushShardAssignmentsServer) error {
return status.Errorf(codes.Unimplemented, "method PushShardAssignments not implemented")
}
func (UnimplementedOxiaCoordinationServer) NewTerm(context.Context, *NewTermRequest) (*NewTermResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method NewTerm not implemented")
}
func (UnimplementedOxiaCoordinationServer) BecomeLeader(context.Context, *BecomeLeaderRequest) (*BecomeLeaderResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method BecomeLeader not implemented")
}
func (UnimplementedOxiaCoordinationServer) AddFollower(context.Context, *AddFollowerRequest) (*AddFollowerResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method AddFollower not implemented")
}
func (UnimplementedOxiaCoordinationServer) GetStatus(context.Context, *GetStatusRequest) (*GetStatusResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetStatus not implemented")
}
func (UnimplementedOxiaCoordinationServer) DeleteShard(context.Context, *DeleteShardRequest) (*DeleteShardResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteShard not implemented")
}
func (UnimplementedOxiaCoordinationServer) mustEmbedUnimplementedOxiaCoordinationServer() {}
// UnsafeOxiaCoordinationServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to OxiaCoordinationServer will
// result in compilation errors.
type UnsafeOxiaCoordinationServer interface {
mustEmbedUnimplementedOxiaCoordinationServer()
}
func RegisterOxiaCoordinationServer(s grpc.ServiceRegistrar, srv OxiaCoordinationServer) {
s.RegisterService(&OxiaCoordination_ServiceDesc, srv)
}
func _OxiaCoordination_PushShardAssignments_Handler(srv interface{}, stream grpc.ServerStream) error {
return srv.(OxiaCoordinationServer).PushShardAssignments(&oxiaCoordinationPushShardAssignmentsServer{stream})
}
type OxiaCoordination_PushShardAssignmentsServer interface {
SendAndClose(*CoordinationShardAssignmentsResponse) error
Recv() (*ShardAssignments, error)
grpc.ServerStream
}
type oxiaCoordinationPushShardAssignmentsServer struct {
grpc.ServerStream
}
func (x *oxiaCoordinationPushShardAssignmentsServer) SendAndClose(m *CoordinationShardAssignmentsResponse) error {
return x.ServerStream.SendMsg(m)
}
func (x *oxiaCoordinationPushShardAssignmentsServer) Recv() (*ShardAssignments, error) {
m := new(ShardAssignments)
if err := x.ServerStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func _OxiaCoordination_NewTerm_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(NewTermRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(OxiaCoordinationServer).NewTerm(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/replication.OxiaCoordination/NewTerm",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(OxiaCoordinationServer).NewTerm(ctx, req.(*NewTermRequest))
}
return interceptor(ctx, in, info, handler)
}
func _OxiaCoordination_BecomeLeader_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BecomeLeaderRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(OxiaCoordinationServer).BecomeLeader(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/replication.OxiaCoordination/BecomeLeader",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(OxiaCoordinationServer).BecomeLeader(ctx, req.(*BecomeLeaderRequest))
}
return interceptor(ctx, in, info, handler)
}
func _OxiaCoordination_AddFollower_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(AddFollowerRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(OxiaCoordinationServer).AddFollower(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/replication.OxiaCoordination/AddFollower",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(OxiaCoordinationServer).AddFollower(ctx, req.(*AddFollowerRequest))
}
return interceptor(ctx, in, info, handler)
}
func _OxiaCoordination_GetStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetStatusRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(OxiaCoordinationServer).GetStatus(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/replication.OxiaCoordination/GetStatus",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(OxiaCoordinationServer).GetStatus(ctx, req.(*GetStatusRequest))
}
return interceptor(ctx, in, info, handler)
}
func _OxiaCoordination_DeleteShard_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteShardRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(OxiaCoordinationServer).DeleteShard(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/replication.OxiaCoordination/DeleteShard",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(OxiaCoordinationServer).DeleteShard(ctx, req.(*DeleteShardRequest))
}
return interceptor(ctx, in, info, handler)
}
// OxiaCoordination_ServiceDesc is the grpc.ServiceDesc for OxiaCoordination service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var OxiaCoordination_ServiceDesc = grpc.ServiceDesc{
ServiceName: "replication.OxiaCoordination",
HandlerType: (*OxiaCoordinationServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "NewTerm",
Handler: _OxiaCoordination_NewTerm_Handler,
},
{
MethodName: "BecomeLeader",
Handler: _OxiaCoordination_BecomeLeader_Handler,
},
{
MethodName: "AddFollower",
Handler: _OxiaCoordination_AddFollower_Handler,
},
{
MethodName: "GetStatus",
Handler: _OxiaCoordination_GetStatus_Handler,
},
{
MethodName: "DeleteShard",
Handler: _OxiaCoordination_DeleteShard_Handler,
},
},
Streams: []grpc.StreamDesc{
{
StreamName: "PushShardAssignments",
Handler: _OxiaCoordination_PushShardAssignments_Handler,
ClientStreams: true,
},
},
Metadata: "replication.proto",
}
// OxiaLogReplicationClient is the client API for OxiaLogReplication service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type OxiaLogReplicationClient interface {
Truncate(ctx context.Context, in *TruncateRequest, opts ...grpc.CallOption) (*TruncateResponse, error)
Replicate(ctx context.Context, opts ...grpc.CallOption) (OxiaLogReplication_ReplicateClient, error)
SendSnapshot(ctx context.Context, opts ...grpc.CallOption) (OxiaLogReplication_SendSnapshotClient, error)
}
type oxiaLogReplicationClient struct {
cc grpc.ClientConnInterface
}
func NewOxiaLogReplicationClient(cc grpc.ClientConnInterface) OxiaLogReplicationClient {
return &oxiaLogReplicationClient{cc}
}
func (c *oxiaLogReplicationClient) Truncate(ctx context.Context, in *TruncateRequest, opts ...grpc.CallOption) (*TruncateResponse, error) {
out := new(TruncateResponse)
err := c.cc.Invoke(ctx, "/replication.OxiaLogReplication/Truncate", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *oxiaLogReplicationClient) Replicate(ctx context.Context, opts ...grpc.CallOption) (OxiaLogReplication_ReplicateClient, error) {
stream, err := c.cc.NewStream(ctx, &OxiaLogReplication_ServiceDesc.Streams[0], "/replication.OxiaLogReplication/Replicate", opts...)
if err != nil {
return nil, err
}
x := &oxiaLogReplicationReplicateClient{stream}
return x, nil
}
type OxiaLogReplication_ReplicateClient interface {
Send(*Append) error
Recv() (*Ack, error)
grpc.ClientStream
}
type oxiaLogReplicationReplicateClient struct {
grpc.ClientStream
}
func (x *oxiaLogReplicationReplicateClient) Send(m *Append) error {
return x.ClientStream.SendMsg(m)
}
func (x *oxiaLogReplicationReplicateClient) Recv() (*Ack, error) {
m := new(Ack)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func (c *oxiaLogReplicationClient) SendSnapshot(ctx context.Context, opts ...grpc.CallOption) (OxiaLogReplication_SendSnapshotClient, error) {
stream, err := c.cc.NewStream(ctx, &OxiaLogReplication_ServiceDesc.Streams[1], "/replication.OxiaLogReplication/SendSnapshot", opts...)
if err != nil {
return nil, err
}
x := &oxiaLogReplicationSendSnapshotClient{stream}
return x, nil
}
type OxiaLogReplication_SendSnapshotClient interface {
Send(*SnapshotChunk) error
CloseAndRecv() (*SnapshotResponse, error)
grpc.ClientStream
}
type oxiaLogReplicationSendSnapshotClient struct {
grpc.ClientStream
}
func (x *oxiaLogReplicationSendSnapshotClient) Send(m *SnapshotChunk) error {
return x.ClientStream.SendMsg(m)
}
func (x *oxiaLogReplicationSendSnapshotClient) CloseAndRecv() (*SnapshotResponse, error) {
if err := x.ClientStream.CloseSend(); err != nil {
return nil, err
}
m := new(SnapshotResponse)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
// OxiaLogReplicationServer is the server API for OxiaLogReplication service.
// All implementations must embed UnimplementedOxiaLogReplicationServer
// for forward compatibility
type OxiaLogReplicationServer interface {
Truncate(context.Context, *TruncateRequest) (*TruncateResponse, error)
Replicate(OxiaLogReplication_ReplicateServer) error
SendSnapshot(OxiaLogReplication_SendSnapshotServer) error
mustEmbedUnimplementedOxiaLogReplicationServer()
}
// UnimplementedOxiaLogReplicationServer must be embedded to have forward compatible implementations.
type UnimplementedOxiaLogReplicationServer struct {
}
func (UnimplementedOxiaLogReplicationServer) Truncate(context.Context, *TruncateRequest) (*TruncateResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Truncate not implemented")
}
func (UnimplementedOxiaLogReplicationServer) Replicate(OxiaLogReplication_ReplicateServer) error {
return status.Errorf(codes.Unimplemented, "method Replicate not implemented")
}
func (UnimplementedOxiaLogReplicationServer) SendSnapshot(OxiaLogReplication_SendSnapshotServer) error {
return status.Errorf(codes.Unimplemented, "method SendSnapshot not implemented")
}
func (UnimplementedOxiaLogReplicationServer) mustEmbedUnimplementedOxiaLogReplicationServer() {}
// UnsafeOxiaLogReplicationServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to OxiaLogReplicationServer will
// result in compilation errors.
type UnsafeOxiaLogReplicationServer interface {
mustEmbedUnimplementedOxiaLogReplicationServer()
}
func RegisterOxiaLogReplicationServer(s grpc.ServiceRegistrar, srv OxiaLogReplicationServer) {
s.RegisterService(&OxiaLogReplication_ServiceDesc, srv)
}
func _OxiaLogReplication_Truncate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(TruncateRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(OxiaLogReplicationServer).Truncate(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/replication.OxiaLogReplication/Truncate",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(OxiaLogReplicationServer).Truncate(ctx, req.(*TruncateRequest))
}
return interceptor(ctx, in, info, handler)
}
func _OxiaLogReplication_Replicate_Handler(srv interface{}, stream grpc.ServerStream) error {
return srv.(OxiaLogReplicationServer).Replicate(&oxiaLogReplicationReplicateServer{stream})
}
type OxiaLogReplication_ReplicateServer interface {
Send(*Ack) error
Recv() (*Append, error)
grpc.ServerStream
}
type oxiaLogReplicationReplicateServer struct {
grpc.ServerStream
}
func (x *oxiaLogReplicationReplicateServer) Send(m *Ack) error {
return x.ServerStream.SendMsg(m)
}
func (x *oxiaLogReplicationReplicateServer) Recv() (*Append, error) {
m := new(Append)
if err := x.ServerStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func _OxiaLogReplication_SendSnapshot_Handler(srv interface{}, stream grpc.ServerStream) error {
return srv.(OxiaLogReplicationServer).SendSnapshot(&oxiaLogReplicationSendSnapshotServer{stream})
}
type OxiaLogReplication_SendSnapshotServer interface {
SendAndClose(*SnapshotResponse) error
Recv() (*SnapshotChunk, error)
grpc.ServerStream
}
type oxiaLogReplicationSendSnapshotServer struct {
grpc.ServerStream
}
func (x *oxiaLogReplicationSendSnapshotServer) SendAndClose(m *SnapshotResponse) error {
return x.ServerStream.SendMsg(m)
}
func (x *oxiaLogReplicationSendSnapshotServer) Recv() (*SnapshotChunk, error) {
m := new(SnapshotChunk)
if err := x.ServerStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
// OxiaLogReplication_ServiceDesc is the grpc.ServiceDesc for OxiaLogReplication service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var OxiaLogReplication_ServiceDesc = grpc.ServiceDesc{
ServiceName: "replication.OxiaLogReplication",
HandlerType: (*OxiaLogReplicationServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Truncate",
Handler: _OxiaLogReplication_Truncate_Handler,
},
},
Streams: []grpc.StreamDesc{
{
StreamName: "Replicate",
Handler: _OxiaLogReplication_Replicate_Handler,
ServerStreams: true,
ClientStreams: true,
},
{
StreamName: "SendSnapshot",
Handler: _OxiaLogReplication_SendSnapshot_Handler,
ClientStreams: true,
},
},
Metadata: "replication.proto",
}