-
Notifications
You must be signed in to change notification settings - Fork 3
/
proxy_grpc.pb.go
497 lines (452 loc) · 20.4 KB
/
proxy_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
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.3.0
// - protoc v4.25.3
// source: proxy.proto
package proxyproto
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
const (
CentrifugoProxy_Connect_FullMethodName = "/centrifugal.centrifugo.proxy.CentrifugoProxy/Connect"
CentrifugoProxy_Refresh_FullMethodName = "/centrifugal.centrifugo.proxy.CentrifugoProxy/Refresh"
CentrifugoProxy_Subscribe_FullMethodName = "/centrifugal.centrifugo.proxy.CentrifugoProxy/Subscribe"
CentrifugoProxy_Publish_FullMethodName = "/centrifugal.centrifugo.proxy.CentrifugoProxy/Publish"
CentrifugoProxy_RPC_FullMethodName = "/centrifugal.centrifugo.proxy.CentrifugoProxy/RPC"
CentrifugoProxy_SubRefresh_FullMethodName = "/centrifugal.centrifugo.proxy.CentrifugoProxy/SubRefresh"
CentrifugoProxy_SubscribeUnidirectional_FullMethodName = "/centrifugal.centrifugo.proxy.CentrifugoProxy/SubscribeUnidirectional"
CentrifugoProxy_SubscribeBidirectional_FullMethodName = "/centrifugal.centrifugo.proxy.CentrifugoProxy/SubscribeBidirectional"
CentrifugoProxy_NotifyChannelState_FullMethodName = "/centrifugal.centrifugo.proxy.CentrifugoProxy/NotifyChannelState"
)
// CentrifugoProxyClient is the client API for CentrifugoProxy 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 CentrifugoProxyClient interface {
// Connect to proxy connection authentication and communicate initial state.
Connect(ctx context.Context, in *ConnectRequest, opts ...grpc.CallOption) (*ConnectResponse, error)
// Refresh to proxy decision about connection expiration to the app backend.
Refresh(ctx context.Context, in *RefreshRequest, opts ...grpc.CallOption) (*RefreshResponse, error)
// Subscribe to proxy subscription attempts to channels.
Subscribe(ctx context.Context, in *SubscribeRequest, opts ...grpc.CallOption) (*SubscribeResponse, error)
// Publish to proxy publication attempts to channels.
Publish(ctx context.Context, in *PublishRequest, opts ...grpc.CallOption) (*PublishResponse, error)
// RPC to execute custom logic on the backend over request through the real-time connection.
RPC(ctx context.Context, in *RPCRequest, opts ...grpc.CallOption) (*RPCResponse, error)
// SubRefresh to proxy decision about subscription expiration to the app backend.
SubRefresh(ctx context.Context, in *SubRefreshRequest, opts ...grpc.CallOption) (*SubRefreshResponse, error)
// SubscribeUnidirectional is an EXPERIMENTAL method which allows handling unidirectional
// subscription streams. Stream starts with SubscribeRequest similar to Subscribe rpc,
// then expects StreamSubscribeResponse with SubscribeResponse as first message, and
// StreamSubscribeResponse with Publication afterwards.
SubscribeUnidirectional(ctx context.Context, in *SubscribeRequest, opts ...grpc.CallOption) (CentrifugoProxy_SubscribeUnidirectionalClient, error)
// SubscribeBidirectional is an EXPERIMENTAL method which allows handling bidirectional
// subscription streams. Stream receives StreamSubscribeRequest. First StreamSubscribeRequest
// always contains SubscribeRequest, then StreamSubscribeRequest will contain data published
// by client. Reverse direction works the same way as in SubscribeUnidirectional.
SubscribeBidirectional(ctx context.Context, opts ...grpc.CallOption) (CentrifugoProxy_SubscribeBidirectionalClient, error)
// NotifyChannelState can be used to receive channel events such as channel "occupied" and "vacated".
// This is a feature in a preview state and is only available in Centrifugo PRO.
NotifyChannelState(ctx context.Context, in *NotifyChannelStateRequest, opts ...grpc.CallOption) (*NotifyChannelStateResponse, error)
}
type centrifugoProxyClient struct {
cc grpc.ClientConnInterface
}
func NewCentrifugoProxyClient(cc grpc.ClientConnInterface) CentrifugoProxyClient {
return ¢rifugoProxyClient{cc}
}
func (c *centrifugoProxyClient) Connect(ctx context.Context, in *ConnectRequest, opts ...grpc.CallOption) (*ConnectResponse, error) {
out := new(ConnectResponse)
err := c.cc.Invoke(ctx, CentrifugoProxy_Connect_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *centrifugoProxyClient) Refresh(ctx context.Context, in *RefreshRequest, opts ...grpc.CallOption) (*RefreshResponse, error) {
out := new(RefreshResponse)
err := c.cc.Invoke(ctx, CentrifugoProxy_Refresh_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *centrifugoProxyClient) Subscribe(ctx context.Context, in *SubscribeRequest, opts ...grpc.CallOption) (*SubscribeResponse, error) {
out := new(SubscribeResponse)
err := c.cc.Invoke(ctx, CentrifugoProxy_Subscribe_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *centrifugoProxyClient) Publish(ctx context.Context, in *PublishRequest, opts ...grpc.CallOption) (*PublishResponse, error) {
out := new(PublishResponse)
err := c.cc.Invoke(ctx, CentrifugoProxy_Publish_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *centrifugoProxyClient) RPC(ctx context.Context, in *RPCRequest, opts ...grpc.CallOption) (*RPCResponse, error) {
out := new(RPCResponse)
err := c.cc.Invoke(ctx, CentrifugoProxy_RPC_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *centrifugoProxyClient) SubRefresh(ctx context.Context, in *SubRefreshRequest, opts ...grpc.CallOption) (*SubRefreshResponse, error) {
out := new(SubRefreshResponse)
err := c.cc.Invoke(ctx, CentrifugoProxy_SubRefresh_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *centrifugoProxyClient) SubscribeUnidirectional(ctx context.Context, in *SubscribeRequest, opts ...grpc.CallOption) (CentrifugoProxy_SubscribeUnidirectionalClient, error) {
stream, err := c.cc.NewStream(ctx, &CentrifugoProxy_ServiceDesc.Streams[0], CentrifugoProxy_SubscribeUnidirectional_FullMethodName, opts...)
if err != nil {
return nil, err
}
x := ¢rifugoProxySubscribeUnidirectionalClient{stream}
if err := x.ClientStream.SendMsg(in); err != nil {
return nil, err
}
if err := x.ClientStream.CloseSend(); err != nil {
return nil, err
}
return x, nil
}
type CentrifugoProxy_SubscribeUnidirectionalClient interface {
Recv() (*StreamSubscribeResponse, error)
grpc.ClientStream
}
type centrifugoProxySubscribeUnidirectionalClient struct {
grpc.ClientStream
}
func (x *centrifugoProxySubscribeUnidirectionalClient) Recv() (*StreamSubscribeResponse, error) {
m := new(StreamSubscribeResponse)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func (c *centrifugoProxyClient) SubscribeBidirectional(ctx context.Context, opts ...grpc.CallOption) (CentrifugoProxy_SubscribeBidirectionalClient, error) {
stream, err := c.cc.NewStream(ctx, &CentrifugoProxy_ServiceDesc.Streams[1], CentrifugoProxy_SubscribeBidirectional_FullMethodName, opts...)
if err != nil {
return nil, err
}
x := ¢rifugoProxySubscribeBidirectionalClient{stream}
return x, nil
}
type CentrifugoProxy_SubscribeBidirectionalClient interface {
Send(*StreamSubscribeRequest) error
Recv() (*StreamSubscribeResponse, error)
grpc.ClientStream
}
type centrifugoProxySubscribeBidirectionalClient struct {
grpc.ClientStream
}
func (x *centrifugoProxySubscribeBidirectionalClient) Send(m *StreamSubscribeRequest) error {
return x.ClientStream.SendMsg(m)
}
func (x *centrifugoProxySubscribeBidirectionalClient) Recv() (*StreamSubscribeResponse, error) {
m := new(StreamSubscribeResponse)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func (c *centrifugoProxyClient) NotifyChannelState(ctx context.Context, in *NotifyChannelStateRequest, opts ...grpc.CallOption) (*NotifyChannelStateResponse, error) {
out := new(NotifyChannelStateResponse)
err := c.cc.Invoke(ctx, CentrifugoProxy_NotifyChannelState_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// CentrifugoProxyServer is the server API for CentrifugoProxy service.
// All implementations must embed UnimplementedCentrifugoProxyServer
// for forward compatibility
type CentrifugoProxyServer interface {
// Connect to proxy connection authentication and communicate initial state.
Connect(context.Context, *ConnectRequest) (*ConnectResponse, error)
// Refresh to proxy decision about connection expiration to the app backend.
Refresh(context.Context, *RefreshRequest) (*RefreshResponse, error)
// Subscribe to proxy subscription attempts to channels.
Subscribe(context.Context, *SubscribeRequest) (*SubscribeResponse, error)
// Publish to proxy publication attempts to channels.
Publish(context.Context, *PublishRequest) (*PublishResponse, error)
// RPC to execute custom logic on the backend over request through the real-time connection.
RPC(context.Context, *RPCRequest) (*RPCResponse, error)
// SubRefresh to proxy decision about subscription expiration to the app backend.
SubRefresh(context.Context, *SubRefreshRequest) (*SubRefreshResponse, error)
// SubscribeUnidirectional is an EXPERIMENTAL method which allows handling unidirectional
// subscription streams. Stream starts with SubscribeRequest similar to Subscribe rpc,
// then expects StreamSubscribeResponse with SubscribeResponse as first message, and
// StreamSubscribeResponse with Publication afterwards.
SubscribeUnidirectional(*SubscribeRequest, CentrifugoProxy_SubscribeUnidirectionalServer) error
// SubscribeBidirectional is an EXPERIMENTAL method which allows handling bidirectional
// subscription streams. Stream receives StreamSubscribeRequest. First StreamSubscribeRequest
// always contains SubscribeRequest, then StreamSubscribeRequest will contain data published
// by client. Reverse direction works the same way as in SubscribeUnidirectional.
SubscribeBidirectional(CentrifugoProxy_SubscribeBidirectionalServer) error
// NotifyChannelState can be used to receive channel events such as channel "occupied" and "vacated".
// This is a feature in a preview state and is only available in Centrifugo PRO.
NotifyChannelState(context.Context, *NotifyChannelStateRequest) (*NotifyChannelStateResponse, error)
mustEmbedUnimplementedCentrifugoProxyServer()
}
// UnimplementedCentrifugoProxyServer must be embedded to have forward compatible implementations.
type UnimplementedCentrifugoProxyServer struct {
}
func (UnimplementedCentrifugoProxyServer) Connect(context.Context, *ConnectRequest) (*ConnectResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Connect not implemented")
}
func (UnimplementedCentrifugoProxyServer) Refresh(context.Context, *RefreshRequest) (*RefreshResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Refresh not implemented")
}
func (UnimplementedCentrifugoProxyServer) Subscribe(context.Context, *SubscribeRequest) (*SubscribeResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Subscribe not implemented")
}
func (UnimplementedCentrifugoProxyServer) Publish(context.Context, *PublishRequest) (*PublishResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Publish not implemented")
}
func (UnimplementedCentrifugoProxyServer) RPC(context.Context, *RPCRequest) (*RPCResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method RPC not implemented")
}
func (UnimplementedCentrifugoProxyServer) SubRefresh(context.Context, *SubRefreshRequest) (*SubRefreshResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method SubRefresh not implemented")
}
func (UnimplementedCentrifugoProxyServer) SubscribeUnidirectional(*SubscribeRequest, CentrifugoProxy_SubscribeUnidirectionalServer) error {
return status.Errorf(codes.Unimplemented, "method SubscribeUnidirectional not implemented")
}
func (UnimplementedCentrifugoProxyServer) SubscribeBidirectional(CentrifugoProxy_SubscribeBidirectionalServer) error {
return status.Errorf(codes.Unimplemented, "method SubscribeBidirectional not implemented")
}
func (UnimplementedCentrifugoProxyServer) NotifyChannelState(context.Context, *NotifyChannelStateRequest) (*NotifyChannelStateResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method NotifyChannelState not implemented")
}
func (UnimplementedCentrifugoProxyServer) mustEmbedUnimplementedCentrifugoProxyServer() {}
// UnsafeCentrifugoProxyServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to CentrifugoProxyServer will
// result in compilation errors.
type UnsafeCentrifugoProxyServer interface {
mustEmbedUnimplementedCentrifugoProxyServer()
}
func RegisterCentrifugoProxyServer(s grpc.ServiceRegistrar, srv CentrifugoProxyServer) {
s.RegisterService(&CentrifugoProxy_ServiceDesc, srv)
}
func _CentrifugoProxy_Connect_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ConnectRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CentrifugoProxyServer).Connect(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: CentrifugoProxy_Connect_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CentrifugoProxyServer).Connect(ctx, req.(*ConnectRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CentrifugoProxy_Refresh_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(RefreshRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CentrifugoProxyServer).Refresh(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: CentrifugoProxy_Refresh_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CentrifugoProxyServer).Refresh(ctx, req.(*RefreshRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CentrifugoProxy_Subscribe_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SubscribeRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CentrifugoProxyServer).Subscribe(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: CentrifugoProxy_Subscribe_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CentrifugoProxyServer).Subscribe(ctx, req.(*SubscribeRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CentrifugoProxy_Publish_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(PublishRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CentrifugoProxyServer).Publish(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: CentrifugoProxy_Publish_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CentrifugoProxyServer).Publish(ctx, req.(*PublishRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CentrifugoProxy_RPC_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(RPCRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CentrifugoProxyServer).RPC(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: CentrifugoProxy_RPC_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CentrifugoProxyServer).RPC(ctx, req.(*RPCRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CentrifugoProxy_SubRefresh_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SubRefreshRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CentrifugoProxyServer).SubRefresh(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: CentrifugoProxy_SubRefresh_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CentrifugoProxyServer).SubRefresh(ctx, req.(*SubRefreshRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CentrifugoProxy_SubscribeUnidirectional_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(SubscribeRequest)
if err := stream.RecvMsg(m); err != nil {
return err
}
return srv.(CentrifugoProxyServer).SubscribeUnidirectional(m, ¢rifugoProxySubscribeUnidirectionalServer{stream})
}
type CentrifugoProxy_SubscribeUnidirectionalServer interface {
Send(*StreamSubscribeResponse) error
grpc.ServerStream
}
type centrifugoProxySubscribeUnidirectionalServer struct {
grpc.ServerStream
}
func (x *centrifugoProxySubscribeUnidirectionalServer) Send(m *StreamSubscribeResponse) error {
return x.ServerStream.SendMsg(m)
}
func _CentrifugoProxy_SubscribeBidirectional_Handler(srv interface{}, stream grpc.ServerStream) error {
return srv.(CentrifugoProxyServer).SubscribeBidirectional(¢rifugoProxySubscribeBidirectionalServer{stream})
}
type CentrifugoProxy_SubscribeBidirectionalServer interface {
Send(*StreamSubscribeResponse) error
Recv() (*StreamSubscribeRequest, error)
grpc.ServerStream
}
type centrifugoProxySubscribeBidirectionalServer struct {
grpc.ServerStream
}
func (x *centrifugoProxySubscribeBidirectionalServer) Send(m *StreamSubscribeResponse) error {
return x.ServerStream.SendMsg(m)
}
func (x *centrifugoProxySubscribeBidirectionalServer) Recv() (*StreamSubscribeRequest, error) {
m := new(StreamSubscribeRequest)
if err := x.ServerStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func _CentrifugoProxy_NotifyChannelState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(NotifyChannelStateRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CentrifugoProxyServer).NotifyChannelState(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: CentrifugoProxy_NotifyChannelState_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CentrifugoProxyServer).NotifyChannelState(ctx, req.(*NotifyChannelStateRequest))
}
return interceptor(ctx, in, info, handler)
}
// CentrifugoProxy_ServiceDesc is the grpc.ServiceDesc for CentrifugoProxy service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var CentrifugoProxy_ServiceDesc = grpc.ServiceDesc{
ServiceName: "centrifugal.centrifugo.proxy.CentrifugoProxy",
HandlerType: (*CentrifugoProxyServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Connect",
Handler: _CentrifugoProxy_Connect_Handler,
},
{
MethodName: "Refresh",
Handler: _CentrifugoProxy_Refresh_Handler,
},
{
MethodName: "Subscribe",
Handler: _CentrifugoProxy_Subscribe_Handler,
},
{
MethodName: "Publish",
Handler: _CentrifugoProxy_Publish_Handler,
},
{
MethodName: "RPC",
Handler: _CentrifugoProxy_RPC_Handler,
},
{
MethodName: "SubRefresh",
Handler: _CentrifugoProxy_SubRefresh_Handler,
},
{
MethodName: "NotifyChannelState",
Handler: _CentrifugoProxy_NotifyChannelState_Handler,
},
},
Streams: []grpc.StreamDesc{
{
StreamName: "SubscribeUnidirectional",
Handler: _CentrifugoProxy_SubscribeUnidirectional_Handler,
ServerStreams: true,
},
{
StreamName: "SubscribeBidirectional",
Handler: _CentrifugoProxy_SubscribeBidirectional_Handler,
ServerStreams: true,
ClientStreams: true,
},
},
Metadata: "proxy.proto",
}