-
Notifications
You must be signed in to change notification settings - Fork 644
/
gresponsewriter.pb.go
650 lines (574 loc) · 22.9 KB
/
gresponsewriter.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
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: gresponsewriter.proto
package gresponsewriterproto
import (
context "context"
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type Header struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Values []string `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Header) Reset() { *m = Header{} }
func (m *Header) String() string { return proto.CompactTextString(m) }
func (*Header) ProtoMessage() {}
func (*Header) Descriptor() ([]byte, []int) {
return fileDescriptor_e66e50a6e6dcfab4, []int{0}
}
func (m *Header) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Header.Unmarshal(m, b)
}
func (m *Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Header.Marshal(b, m, deterministic)
}
func (m *Header) XXX_Merge(src proto.Message) {
xxx_messageInfo_Header.Merge(m, src)
}
func (m *Header) XXX_Size() int {
return xxx_messageInfo_Header.Size(m)
}
func (m *Header) XXX_DiscardUnknown() {
xxx_messageInfo_Header.DiscardUnknown(m)
}
var xxx_messageInfo_Header proto.InternalMessageInfo
func (m *Header) GetKey() string {
if m != nil {
return m.Key
}
return ""
}
func (m *Header) GetValues() []string {
if m != nil {
return m.Values
}
return nil
}
type WriteRequest struct {
Headers []*Header `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty"`
Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WriteRequest) Reset() { *m = WriteRequest{} }
func (m *WriteRequest) String() string { return proto.CompactTextString(m) }
func (*WriteRequest) ProtoMessage() {}
func (*WriteRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_e66e50a6e6dcfab4, []int{1}
}
func (m *WriteRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WriteRequest.Unmarshal(m, b)
}
func (m *WriteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WriteRequest.Marshal(b, m, deterministic)
}
func (m *WriteRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_WriteRequest.Merge(m, src)
}
func (m *WriteRequest) XXX_Size() int {
return xxx_messageInfo_WriteRequest.Size(m)
}
func (m *WriteRequest) XXX_DiscardUnknown() {
xxx_messageInfo_WriteRequest.DiscardUnknown(m)
}
var xxx_messageInfo_WriteRequest proto.InternalMessageInfo
func (m *WriteRequest) GetHeaders() []*Header {
if m != nil {
return m.Headers
}
return nil
}
func (m *WriteRequest) GetPayload() []byte {
if m != nil {
return m.Payload
}
return nil
}
type WriteResponse struct {
Written int32 `protobuf:"varint,1,opt,name=written,proto3" json:"written,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WriteResponse) Reset() { *m = WriteResponse{} }
func (m *WriteResponse) String() string { return proto.CompactTextString(m) }
func (*WriteResponse) ProtoMessage() {}
func (*WriteResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_e66e50a6e6dcfab4, []int{2}
}
func (m *WriteResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WriteResponse.Unmarshal(m, b)
}
func (m *WriteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WriteResponse.Marshal(b, m, deterministic)
}
func (m *WriteResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_WriteResponse.Merge(m, src)
}
func (m *WriteResponse) XXX_Size() int {
return xxx_messageInfo_WriteResponse.Size(m)
}
func (m *WriteResponse) XXX_DiscardUnknown() {
xxx_messageInfo_WriteResponse.DiscardUnknown(m)
}
var xxx_messageInfo_WriteResponse proto.InternalMessageInfo
func (m *WriteResponse) GetWritten() int32 {
if m != nil {
return m.Written
}
return 0
}
type WriteHeaderRequest struct {
Headers []*Header `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty"`
StatusCode int32 `protobuf:"varint,2,opt,name=statusCode,proto3" json:"statusCode,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WriteHeaderRequest) Reset() { *m = WriteHeaderRequest{} }
func (m *WriteHeaderRequest) String() string { return proto.CompactTextString(m) }
func (*WriteHeaderRequest) ProtoMessage() {}
func (*WriteHeaderRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_e66e50a6e6dcfab4, []int{3}
}
func (m *WriteHeaderRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WriteHeaderRequest.Unmarshal(m, b)
}
func (m *WriteHeaderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WriteHeaderRequest.Marshal(b, m, deterministic)
}
func (m *WriteHeaderRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_WriteHeaderRequest.Merge(m, src)
}
func (m *WriteHeaderRequest) XXX_Size() int {
return xxx_messageInfo_WriteHeaderRequest.Size(m)
}
func (m *WriteHeaderRequest) XXX_DiscardUnknown() {
xxx_messageInfo_WriteHeaderRequest.DiscardUnknown(m)
}
var xxx_messageInfo_WriteHeaderRequest proto.InternalMessageInfo
func (m *WriteHeaderRequest) GetHeaders() []*Header {
if m != nil {
return m.Headers
}
return nil
}
func (m *WriteHeaderRequest) GetStatusCode() int32 {
if m != nil {
return m.StatusCode
}
return 0
}
type WriteHeaderResponse struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WriteHeaderResponse) Reset() { *m = WriteHeaderResponse{} }
func (m *WriteHeaderResponse) String() string { return proto.CompactTextString(m) }
func (*WriteHeaderResponse) ProtoMessage() {}
func (*WriteHeaderResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_e66e50a6e6dcfab4, []int{4}
}
func (m *WriteHeaderResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WriteHeaderResponse.Unmarshal(m, b)
}
func (m *WriteHeaderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WriteHeaderResponse.Marshal(b, m, deterministic)
}
func (m *WriteHeaderResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_WriteHeaderResponse.Merge(m, src)
}
func (m *WriteHeaderResponse) XXX_Size() int {
return xxx_messageInfo_WriteHeaderResponse.Size(m)
}
func (m *WriteHeaderResponse) XXX_DiscardUnknown() {
xxx_messageInfo_WriteHeaderResponse.DiscardUnknown(m)
}
var xxx_messageInfo_WriteHeaderResponse proto.InternalMessageInfo
type FlushRequest struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FlushRequest) Reset() { *m = FlushRequest{} }
func (m *FlushRequest) String() string { return proto.CompactTextString(m) }
func (*FlushRequest) ProtoMessage() {}
func (*FlushRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_e66e50a6e6dcfab4, []int{5}
}
func (m *FlushRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FlushRequest.Unmarshal(m, b)
}
func (m *FlushRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FlushRequest.Marshal(b, m, deterministic)
}
func (m *FlushRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_FlushRequest.Merge(m, src)
}
func (m *FlushRequest) XXX_Size() int {
return xxx_messageInfo_FlushRequest.Size(m)
}
func (m *FlushRequest) XXX_DiscardUnknown() {
xxx_messageInfo_FlushRequest.DiscardUnknown(m)
}
var xxx_messageInfo_FlushRequest proto.InternalMessageInfo
type FlushResponse struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FlushResponse) Reset() { *m = FlushResponse{} }
func (m *FlushResponse) String() string { return proto.CompactTextString(m) }
func (*FlushResponse) ProtoMessage() {}
func (*FlushResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_e66e50a6e6dcfab4, []int{6}
}
func (m *FlushResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FlushResponse.Unmarshal(m, b)
}
func (m *FlushResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FlushResponse.Marshal(b, m, deterministic)
}
func (m *FlushResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_FlushResponse.Merge(m, src)
}
func (m *FlushResponse) XXX_Size() int {
return xxx_messageInfo_FlushResponse.Size(m)
}
func (m *FlushResponse) XXX_DiscardUnknown() {
xxx_messageInfo_FlushResponse.DiscardUnknown(m)
}
var xxx_messageInfo_FlushResponse proto.InternalMessageInfo
type HijackRequest struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *HijackRequest) Reset() { *m = HijackRequest{} }
func (m *HijackRequest) String() string { return proto.CompactTextString(m) }
func (*HijackRequest) ProtoMessage() {}
func (*HijackRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_e66e50a6e6dcfab4, []int{7}
}
func (m *HijackRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_HijackRequest.Unmarshal(m, b)
}
func (m *HijackRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_HijackRequest.Marshal(b, m, deterministic)
}
func (m *HijackRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_HijackRequest.Merge(m, src)
}
func (m *HijackRequest) XXX_Size() int {
return xxx_messageInfo_HijackRequest.Size(m)
}
func (m *HijackRequest) XXX_DiscardUnknown() {
xxx_messageInfo_HijackRequest.DiscardUnknown(m)
}
var xxx_messageInfo_HijackRequest proto.InternalMessageInfo
type HijackResponse struct {
ConnServer uint32 `protobuf:"varint,1,opt,name=connServer,proto3" json:"connServer,omitempty"`
LocalNetwork string `protobuf:"bytes,2,opt,name=localNetwork,proto3" json:"localNetwork,omitempty"`
LocalString string `protobuf:"bytes,3,opt,name=localString,proto3" json:"localString,omitempty"`
RemoteNetwork string `protobuf:"bytes,4,opt,name=remoteNetwork,proto3" json:"remoteNetwork,omitempty"`
RemoteString string `protobuf:"bytes,5,opt,name=remoteString,proto3" json:"remoteString,omitempty"`
ReaderServer uint32 `protobuf:"varint,6,opt,name=readerServer,proto3" json:"readerServer,omitempty"`
WriterServer uint32 `protobuf:"varint,7,opt,name=writerServer,proto3" json:"writerServer,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *HijackResponse) Reset() { *m = HijackResponse{} }
func (m *HijackResponse) String() string { return proto.CompactTextString(m) }
func (*HijackResponse) ProtoMessage() {}
func (*HijackResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_e66e50a6e6dcfab4, []int{8}
}
func (m *HijackResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_HijackResponse.Unmarshal(m, b)
}
func (m *HijackResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_HijackResponse.Marshal(b, m, deterministic)
}
func (m *HijackResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_HijackResponse.Merge(m, src)
}
func (m *HijackResponse) XXX_Size() int {
return xxx_messageInfo_HijackResponse.Size(m)
}
func (m *HijackResponse) XXX_DiscardUnknown() {
xxx_messageInfo_HijackResponse.DiscardUnknown(m)
}
var xxx_messageInfo_HijackResponse proto.InternalMessageInfo
func (m *HijackResponse) GetConnServer() uint32 {
if m != nil {
return m.ConnServer
}
return 0
}
func (m *HijackResponse) GetLocalNetwork() string {
if m != nil {
return m.LocalNetwork
}
return ""
}
func (m *HijackResponse) GetLocalString() string {
if m != nil {
return m.LocalString
}
return ""
}
func (m *HijackResponse) GetRemoteNetwork() string {
if m != nil {
return m.RemoteNetwork
}
return ""
}
func (m *HijackResponse) GetRemoteString() string {
if m != nil {
return m.RemoteString
}
return ""
}
func (m *HijackResponse) GetReaderServer() uint32 {
if m != nil {
return m.ReaderServer
}
return 0
}
func (m *HijackResponse) GetWriterServer() uint32 {
if m != nil {
return m.WriterServer
}
return 0
}
func init() {
proto.RegisterType((*Header)(nil), "gresponsewriterproto.Header")
proto.RegisterType((*WriteRequest)(nil), "gresponsewriterproto.WriteRequest")
proto.RegisterType((*WriteResponse)(nil), "gresponsewriterproto.WriteResponse")
proto.RegisterType((*WriteHeaderRequest)(nil), "gresponsewriterproto.WriteHeaderRequest")
proto.RegisterType((*WriteHeaderResponse)(nil), "gresponsewriterproto.WriteHeaderResponse")
proto.RegisterType((*FlushRequest)(nil), "gresponsewriterproto.FlushRequest")
proto.RegisterType((*FlushResponse)(nil), "gresponsewriterproto.FlushResponse")
proto.RegisterType((*HijackRequest)(nil), "gresponsewriterproto.HijackRequest")
proto.RegisterType((*HijackResponse)(nil), "gresponsewriterproto.HijackResponse")
}
func init() { proto.RegisterFile("gresponsewriter.proto", fileDescriptor_e66e50a6e6dcfab4) }
var fileDescriptor_e66e50a6e6dcfab4 = []byte{
// 426 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x94, 0xc1, 0xaa, 0xda, 0x40,
0x14, 0x86, 0x49, 0xd2, 0x44, 0x3c, 0x26, 0xf7, 0x96, 0x69, 0xef, 0x25, 0x48, 0x91, 0x30, 0x75,
0x11, 0x37, 0x2e, 0x2c, 0xf4, 0x01, 0x5a, 0x28, 0xae, 0x8a, 0x8c, 0x8b, 0x42, 0x57, 0x8d, 0x7a,
0x50, 0x6b, 0x9a, 0xb1, 0x33, 0x13, 0xc5, 0x37, 0xe8, 0x8b, 0xf6, 0x3d, 0x4a, 0x66, 0x26, 0x30,
0x29, 0x2a, 0x85, 0xae, 0xcc, 0xf9, 0xfd, 0xfc, 0xff, 0x3f, 0x33, 0x07, 0xe1, 0x69, 0x2b, 0x50,
0x1e, 0x79, 0x25, 0xf1, 0x2c, 0xf6, 0x0a, 0xc5, 0xf4, 0x28, 0xb8, 0xe2, 0xe4, 0xf5, 0x5f, 0xb2,
0x56, 0xe9, 0x0c, 0xa2, 0x39, 0x16, 0x1b, 0x14, 0xe4, 0x25, 0x04, 0x07, 0xbc, 0xa4, 0x5e, 0xe6,
0xe5, 0x7d, 0xd6, 0x3c, 0x92, 0x67, 0x88, 0x4e, 0x45, 0x59, 0xa3, 0x4c, 0xfd, 0x2c, 0xc8, 0xfb,
0xcc, 0x4e, 0xf4, 0x1b, 0xc4, 0x5f, 0x1a, 0x0b, 0x86, 0x3f, 0x6b, 0x94, 0x8a, 0xbc, 0x87, 0xde,
0x4e, 0x7b, 0xc8, 0xd4, 0xcb, 0x82, 0x7c, 0x30, 0x7b, 0x33, 0xbd, 0x96, 0x35, 0x35, 0x41, 0xac,
0x85, 0x49, 0x0a, 0xbd, 0x63, 0x71, 0x29, 0x79, 0xb1, 0x49, 0xfd, 0xcc, 0xcb, 0x63, 0xd6, 0x8e,
0x74, 0x02, 0x89, 0x4d, 0x30, 0x2e, 0x0d, 0xda, 0x38, 0x29, 0xac, 0x74, 0xc1, 0x90, 0xb5, 0x23,
0x2d, 0x81, 0x68, 0xd4, 0x9a, 0xff, 0x67, 0xa5, 0x11, 0x80, 0x54, 0x85, 0xaa, 0xe5, 0x47, 0xbe,
0x41, 0xdd, 0x2a, 0x64, 0x8e, 0x42, 0x9f, 0xe0, 0x55, 0x27, 0xcd, 0x38, 0xd2, 0x07, 0x88, 0x3f,
0x95, 0xb5, 0xdc, 0xd9, 0x78, 0xfa, 0x08, 0x89, 0x9d, 0x2d, 0xf0, 0x08, 0xc9, 0x7c, 0xff, 0xbd,
0x58, 0x1f, 0x5a, 0xe2, 0x97, 0x0f, 0x0f, 0xad, 0x62, 0xdf, 0x71, 0x04, 0xb0, 0xe6, 0x55, 0xb5,
0x44, 0x71, 0x42, 0xa1, 0x5f, 0x33, 0x61, 0x8e, 0x42, 0x28, 0xc4, 0x25, 0x5f, 0x17, 0xe5, 0x67,
0x54, 0x67, 0x2e, 0x0e, 0xba, 0x5d, 0x9f, 0x75, 0x34, 0x92, 0xc1, 0x40, 0xcf, 0x4b, 0x25, 0xf6,
0xd5, 0x36, 0x0d, 0x34, 0xe2, 0x4a, 0x64, 0x0c, 0x89, 0xc0, 0x1f, 0x5c, 0x61, 0x6b, 0xf3, 0x42,
0x33, 0x5d, 0xb1, 0xc9, 0x32, 0x82, 0x35, 0x0a, 0x4d, 0x96, 0xab, 0x19, 0xa6, 0x39, 0x06, 0xdb,
0x38, 0xd2, 0x8d, 0x3b, 0x5a, 0xc3, 0x98, 0xe3, 0xb6, 0x4c, 0xcf, 0x30, 0xae, 0x36, 0xfb, 0xed,
0x43, 0xa4, 0x0f, 0x55, 0x90, 0x05, 0x84, 0xfa, 0x89, 0xd0, 0xeb, 0xd7, 0xe5, 0xae, 0xdd, 0xf0,
0xed, 0x5d, 0xc6, 0x1e, 0xea, 0x0a, 0x06, 0xce, 0x85, 0x91, 0xfc, 0xce, 0x6f, 0x3a, 0x1b, 0x34,
0x9c, 0xfc, 0x03, 0x69, 0x33, 0x16, 0x10, 0xea, 0xdb, 0xbe, 0xd5, 0xda, 0x5d, 0x8d, 0x5b, 0xad,
0x3b, 0xeb, 0x42, 0x96, 0x10, 0x99, 0xe5, 0x20, 0x37, 0xf0, 0xce, 0x32, 0x0d, 0xc7, 0xf7, 0x21,
0xf3, 0xcd, 0x87, 0xe7, 0xaf, 0x57, 0xff, 0x02, 0x56, 0x91, 0xfe, 0x78, 0xf7, 0x27, 0x00, 0x00,
0xff, 0xff, 0x9f, 0x44, 0xb9, 0xc8, 0x38, 0x04, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConnInterface
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion6
// WriterClient is the client API for Writer service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type WriterClient interface {
Write(ctx context.Context, in *WriteRequest, opts ...grpc.CallOption) (*WriteResponse, error)
WriteHeader(ctx context.Context, in *WriteHeaderRequest, opts ...grpc.CallOption) (*WriteHeaderResponse, error)
Flush(ctx context.Context, in *FlushRequest, opts ...grpc.CallOption) (*FlushResponse, error)
Hijack(ctx context.Context, in *HijackRequest, opts ...grpc.CallOption) (*HijackResponse, error)
}
type writerClient struct {
cc grpc.ClientConnInterface
}
func NewWriterClient(cc grpc.ClientConnInterface) WriterClient {
return &writerClient{cc}
}
func (c *writerClient) Write(ctx context.Context, in *WriteRequest, opts ...grpc.CallOption) (*WriteResponse, error) {
out := new(WriteResponse)
err := c.cc.Invoke(ctx, "/gresponsewriterproto.Writer/Write", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *writerClient) WriteHeader(ctx context.Context, in *WriteHeaderRequest, opts ...grpc.CallOption) (*WriteHeaderResponse, error) {
out := new(WriteHeaderResponse)
err := c.cc.Invoke(ctx, "/gresponsewriterproto.Writer/WriteHeader", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *writerClient) Flush(ctx context.Context, in *FlushRequest, opts ...grpc.CallOption) (*FlushResponse, error) {
out := new(FlushResponse)
err := c.cc.Invoke(ctx, "/gresponsewriterproto.Writer/Flush", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *writerClient) Hijack(ctx context.Context, in *HijackRequest, opts ...grpc.CallOption) (*HijackResponse, error) {
out := new(HijackResponse)
err := c.cc.Invoke(ctx, "/gresponsewriterproto.Writer/Hijack", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// WriterServer is the server API for Writer service.
type WriterServer interface {
Write(context.Context, *WriteRequest) (*WriteResponse, error)
WriteHeader(context.Context, *WriteHeaderRequest) (*WriteHeaderResponse, error)
Flush(context.Context, *FlushRequest) (*FlushResponse, error)
Hijack(context.Context, *HijackRequest) (*HijackResponse, error)
}
// UnimplementedWriterServer can be embedded to have forward compatible implementations.
type UnimplementedWriterServer struct {
}
func (*UnimplementedWriterServer) Write(ctx context.Context, req *WriteRequest) (*WriteResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Write not implemented")
}
func (*UnimplementedWriterServer) WriteHeader(ctx context.Context, req *WriteHeaderRequest) (*WriteHeaderResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method WriteHeader not implemented")
}
func (*UnimplementedWriterServer) Flush(ctx context.Context, req *FlushRequest) (*FlushResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Flush not implemented")
}
func (*UnimplementedWriterServer) Hijack(ctx context.Context, req *HijackRequest) (*HijackResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Hijack not implemented")
}
func RegisterWriterServer(s *grpc.Server, srv WriterServer) {
s.RegisterService(&_Writer_serviceDesc, srv)
}
func _Writer_Write_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(WriteRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WriterServer).Write(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/gresponsewriterproto.Writer/Write",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WriterServer).Write(ctx, req.(*WriteRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Writer_WriteHeader_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(WriteHeaderRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WriterServer).WriteHeader(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/gresponsewriterproto.Writer/WriteHeader",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WriterServer).WriteHeader(ctx, req.(*WriteHeaderRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Writer_Flush_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FlushRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WriterServer).Flush(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/gresponsewriterproto.Writer/Flush",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WriterServer).Flush(ctx, req.(*FlushRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Writer_Hijack_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(HijackRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WriterServer).Hijack(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/gresponsewriterproto.Writer/Hijack",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WriterServer).Hijack(ctx, req.(*HijackRequest))
}
return interceptor(ctx, in, info, handler)
}
var _Writer_serviceDesc = grpc.ServiceDesc{
ServiceName: "gresponsewriterproto.Writer",
HandlerType: (*WriterServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Write",
Handler: _Writer_Write_Handler,
},
{
MethodName: "WriteHeader",
Handler: _Writer_WriteHeader_Handler,
},
{
MethodName: "Flush",
Handler: _Writer_Flush_Handler,
},
{
MethodName: "Hijack",
Handler: _Writer_Hijack_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "gresponsewriter.proto",
}