-
Notifications
You must be signed in to change notification settings - Fork 117
/
proxy.pb.go
717 lines (626 loc) · 22.6 KB
/
proxy.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
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: proxy.proto
package proxy
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// 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 PROXY_PROTO int32
const (
PROXY_PROTO_TCP PROXY_PROTO = 0
PROXY_PROTO_UDP PROXY_PROTO = 1
PROXY_PROTO_RUDP PROXY_PROTO = 2
PROXY_PROTO_RICMP PROXY_PROTO = 3
PROXY_PROTO_KCP PROXY_PROTO = 4
)
var PROXY_PROTO_name = map[int32]string{
0: "TCP",
1: "UDP",
2: "RUDP",
3: "RICMP",
4: "KCP",
}
var PROXY_PROTO_value = map[string]int32{
"TCP": 0,
"UDP": 1,
"RUDP": 2,
"RICMP": 3,
"KCP": 4,
}
func (x PROXY_PROTO) String() string {
return proto.EnumName(PROXY_PROTO_name, int32(x))
}
func (PROXY_PROTO) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_700b50b08ed8dbaf, []int{0}
}
type CLIENT_TYPE int32
const (
// client fromaddr -> server toaddr
CLIENT_TYPE_PROXY CLIENT_TYPE = 0
// server fromaddr -> client toaddr
CLIENT_TYPE_REVERSE_PROXY CLIENT_TYPE = 1
// client fromaddr -> server
CLIENT_TYPE_SOCKS5 CLIENT_TYPE = 2
// server fromaddr -> client
CLIENT_TYPE_REVERSE_SOCKS5 CLIENT_TYPE = 3
// client fromaddr -> server shadowsocks address [SS_LOCAL_HOST:SS_LOCAL_PORT]
CLIENT_TYPE_SS_PROXY CLIENT_TYPE = 4
)
var CLIENT_TYPE_name = map[int32]string{
0: "PROXY",
1: "REVERSE_PROXY",
2: "SOCKS5",
3: "REVERSE_SOCKS5",
4: "SS_PROXY",
}
var CLIENT_TYPE_value = map[string]int32{
"PROXY": 0,
"REVERSE_PROXY": 1,
"SOCKS5": 2,
"REVERSE_SOCKS5": 3,
"SS_PROXY": 4,
}
func (x CLIENT_TYPE) String() string {
return proto.EnumName(CLIENT_TYPE_name, int32(x))
}
func (CLIENT_TYPE) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_700b50b08ed8dbaf, []int{1}
}
type FRAME_TYPE int32
const (
FRAME_TYPE_LOGIN FRAME_TYPE = 0
FRAME_TYPE_LOGINRSP FRAME_TYPE = 1
FRAME_TYPE_DATA FRAME_TYPE = 2
FRAME_TYPE_PING FRAME_TYPE = 3
FRAME_TYPE_PONG FRAME_TYPE = 4
FRAME_TYPE_OPEN FRAME_TYPE = 5
FRAME_TYPE_OPENRSP FRAME_TYPE = 6
FRAME_TYPE_CLOSE FRAME_TYPE = 7
)
var FRAME_TYPE_name = map[int32]string{
0: "LOGIN",
1: "LOGINRSP",
2: "DATA",
3: "PING",
4: "PONG",
5: "OPEN",
6: "OPENRSP",
7: "CLOSE",
}
var FRAME_TYPE_value = map[string]int32{
"LOGIN": 0,
"LOGINRSP": 1,
"DATA": 2,
"PING": 3,
"PONG": 4,
"OPEN": 5,
"OPENRSP": 6,
"CLOSE": 7,
}
func (x FRAME_TYPE) String() string {
return proto.EnumName(FRAME_TYPE_name, int32(x))
}
func (FRAME_TYPE) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_700b50b08ed8dbaf, []int{2}
}
type LoginFrame struct {
Proxyproto PROXY_PROTO `protobuf:"varint,1,opt,name=proxyproto,proto3,enum=PROXY_PROTO" json:"proxyproto,omitempty"`
Clienttype CLIENT_TYPE `protobuf:"varint,2,opt,name=clienttype,proto3,enum=CLIENT_TYPE" json:"clienttype,omitempty"`
Fromaddr string `protobuf:"bytes,3,opt,name=fromaddr,proto3" json:"fromaddr,omitempty"`
Toaddr string `protobuf:"bytes,4,opt,name=toaddr,proto3" json:"toaddr,omitempty"`
Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
Key string `protobuf:"bytes,6,opt,name=key,proto3" json:"key,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *LoginFrame) Reset() { *m = LoginFrame{} }
func (m *LoginFrame) String() string { return proto.CompactTextString(m) }
func (*LoginFrame) ProtoMessage() {}
func (*LoginFrame) Descriptor() ([]byte, []int) {
return fileDescriptor_700b50b08ed8dbaf, []int{0}
}
func (m *LoginFrame) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LoginFrame.Unmarshal(m, b)
}
func (m *LoginFrame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LoginFrame.Marshal(b, m, deterministic)
}
func (m *LoginFrame) XXX_Merge(src proto.Message) {
xxx_messageInfo_LoginFrame.Merge(m, src)
}
func (m *LoginFrame) XXX_Size() int {
return xxx_messageInfo_LoginFrame.Size(m)
}
func (m *LoginFrame) XXX_DiscardUnknown() {
xxx_messageInfo_LoginFrame.DiscardUnknown(m)
}
var xxx_messageInfo_LoginFrame proto.InternalMessageInfo
func (m *LoginFrame) GetProxyproto() PROXY_PROTO {
if m != nil {
return m.Proxyproto
}
return PROXY_PROTO_TCP
}
func (m *LoginFrame) GetClienttype() CLIENT_TYPE {
if m != nil {
return m.Clienttype
}
return CLIENT_TYPE_PROXY
}
func (m *LoginFrame) GetFromaddr() string {
if m != nil {
return m.Fromaddr
}
return ""
}
func (m *LoginFrame) GetToaddr() string {
if m != nil {
return m.Toaddr
}
return ""
}
func (m *LoginFrame) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *LoginFrame) GetKey() string {
if m != nil {
return m.Key
}
return ""
}
type LoginRspFrame struct {
Ret bool `protobuf:"varint,1,opt,name=ret,proto3" json:"ret,omitempty"`
Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *LoginRspFrame) Reset() { *m = LoginRspFrame{} }
func (m *LoginRspFrame) String() string { return proto.CompactTextString(m) }
func (*LoginRspFrame) ProtoMessage() {}
func (*LoginRspFrame) Descriptor() ([]byte, []int) {
return fileDescriptor_700b50b08ed8dbaf, []int{1}
}
func (m *LoginRspFrame) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LoginRspFrame.Unmarshal(m, b)
}
func (m *LoginRspFrame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LoginRspFrame.Marshal(b, m, deterministic)
}
func (m *LoginRspFrame) XXX_Merge(src proto.Message) {
xxx_messageInfo_LoginRspFrame.Merge(m, src)
}
func (m *LoginRspFrame) XXX_Size() int {
return xxx_messageInfo_LoginRspFrame.Size(m)
}
func (m *LoginRspFrame) XXX_DiscardUnknown() {
xxx_messageInfo_LoginRspFrame.DiscardUnknown(m)
}
var xxx_messageInfo_LoginRspFrame proto.InternalMessageInfo
func (m *LoginRspFrame) GetRet() bool {
if m != nil {
return m.Ret
}
return false
}
func (m *LoginRspFrame) GetMsg() string {
if m != nil {
return m.Msg
}
return ""
}
type PingFrame struct {
Time int64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PingFrame) Reset() { *m = PingFrame{} }
func (m *PingFrame) String() string { return proto.CompactTextString(m) }
func (*PingFrame) ProtoMessage() {}
func (*PingFrame) Descriptor() ([]byte, []int) {
return fileDescriptor_700b50b08ed8dbaf, []int{2}
}
func (m *PingFrame) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PingFrame.Unmarshal(m, b)
}
func (m *PingFrame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PingFrame.Marshal(b, m, deterministic)
}
func (m *PingFrame) XXX_Merge(src proto.Message) {
xxx_messageInfo_PingFrame.Merge(m, src)
}
func (m *PingFrame) XXX_Size() int {
return xxx_messageInfo_PingFrame.Size(m)
}
func (m *PingFrame) XXX_DiscardUnknown() {
xxx_messageInfo_PingFrame.DiscardUnknown(m)
}
var xxx_messageInfo_PingFrame proto.InternalMessageInfo
func (m *PingFrame) GetTime() int64 {
if m != nil {
return m.Time
}
return 0
}
type PongFrame struct {
Time int64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PongFrame) Reset() { *m = PongFrame{} }
func (m *PongFrame) String() string { return proto.CompactTextString(m) }
func (*PongFrame) ProtoMessage() {}
func (*PongFrame) Descriptor() ([]byte, []int) {
return fileDescriptor_700b50b08ed8dbaf, []int{3}
}
func (m *PongFrame) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PongFrame.Unmarshal(m, b)
}
func (m *PongFrame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PongFrame.Marshal(b, m, deterministic)
}
func (m *PongFrame) XXX_Merge(src proto.Message) {
xxx_messageInfo_PongFrame.Merge(m, src)
}
func (m *PongFrame) XXX_Size() int {
return xxx_messageInfo_PongFrame.Size(m)
}
func (m *PongFrame) XXX_DiscardUnknown() {
xxx_messageInfo_PongFrame.DiscardUnknown(m)
}
var xxx_messageInfo_PongFrame proto.InternalMessageInfo
func (m *PongFrame) GetTime() int64 {
if m != nil {
return m.Time
}
return 0
}
type OpenConnFrame struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Toaddr string `protobuf:"bytes,2,opt,name=toaddr,proto3" json:"toaddr,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *OpenConnFrame) Reset() { *m = OpenConnFrame{} }
func (m *OpenConnFrame) String() string { return proto.CompactTextString(m) }
func (*OpenConnFrame) ProtoMessage() {}
func (*OpenConnFrame) Descriptor() ([]byte, []int) {
return fileDescriptor_700b50b08ed8dbaf, []int{4}
}
func (m *OpenConnFrame) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_OpenConnFrame.Unmarshal(m, b)
}
func (m *OpenConnFrame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_OpenConnFrame.Marshal(b, m, deterministic)
}
func (m *OpenConnFrame) XXX_Merge(src proto.Message) {
xxx_messageInfo_OpenConnFrame.Merge(m, src)
}
func (m *OpenConnFrame) XXX_Size() int {
return xxx_messageInfo_OpenConnFrame.Size(m)
}
func (m *OpenConnFrame) XXX_DiscardUnknown() {
xxx_messageInfo_OpenConnFrame.DiscardUnknown(m)
}
var xxx_messageInfo_OpenConnFrame proto.InternalMessageInfo
func (m *OpenConnFrame) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *OpenConnFrame) GetToaddr() string {
if m != nil {
return m.Toaddr
}
return ""
}
type OpenConnRspFrame struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Ret bool `protobuf:"varint,2,opt,name=ret,proto3" json:"ret,omitempty"`
Msg string `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *OpenConnRspFrame) Reset() { *m = OpenConnRspFrame{} }
func (m *OpenConnRspFrame) String() string { return proto.CompactTextString(m) }
func (*OpenConnRspFrame) ProtoMessage() {}
func (*OpenConnRspFrame) Descriptor() ([]byte, []int) {
return fileDescriptor_700b50b08ed8dbaf, []int{5}
}
func (m *OpenConnRspFrame) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_OpenConnRspFrame.Unmarshal(m, b)
}
func (m *OpenConnRspFrame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_OpenConnRspFrame.Marshal(b, m, deterministic)
}
func (m *OpenConnRspFrame) XXX_Merge(src proto.Message) {
xxx_messageInfo_OpenConnRspFrame.Merge(m, src)
}
func (m *OpenConnRspFrame) XXX_Size() int {
return xxx_messageInfo_OpenConnRspFrame.Size(m)
}
func (m *OpenConnRspFrame) XXX_DiscardUnknown() {
xxx_messageInfo_OpenConnRspFrame.DiscardUnknown(m)
}
var xxx_messageInfo_OpenConnRspFrame proto.InternalMessageInfo
func (m *OpenConnRspFrame) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *OpenConnRspFrame) GetRet() bool {
if m != nil {
return m.Ret
}
return false
}
func (m *OpenConnRspFrame) GetMsg() string {
if m != nil {
return m.Msg
}
return ""
}
type CloseFrame struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CloseFrame) Reset() { *m = CloseFrame{} }
func (m *CloseFrame) String() string { return proto.CompactTextString(m) }
func (*CloseFrame) ProtoMessage() {}
func (*CloseFrame) Descriptor() ([]byte, []int) {
return fileDescriptor_700b50b08ed8dbaf, []int{6}
}
func (m *CloseFrame) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CloseFrame.Unmarshal(m, b)
}
func (m *CloseFrame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CloseFrame.Marshal(b, m, deterministic)
}
func (m *CloseFrame) XXX_Merge(src proto.Message) {
xxx_messageInfo_CloseFrame.Merge(m, src)
}
func (m *CloseFrame) XXX_Size() int {
return xxx_messageInfo_CloseFrame.Size(m)
}
func (m *CloseFrame) XXX_DiscardUnknown() {
xxx_messageInfo_CloseFrame.DiscardUnknown(m)
}
var xxx_messageInfo_CloseFrame proto.InternalMessageInfo
func (m *CloseFrame) GetId() string {
if m != nil {
return m.Id
}
return ""
}
type DataFrame struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Compress bool `protobuf:"varint,2,opt,name=compress,proto3" json:"compress,omitempty"`
Crc string `protobuf:"bytes,3,opt,name=crc,proto3" json:"crc,omitempty"`
Data []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
Index int32 `protobuf:"varint,5,opt,name=index,proto3" json:"index,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DataFrame) Reset() { *m = DataFrame{} }
func (m *DataFrame) String() string { return proto.CompactTextString(m) }
func (*DataFrame) ProtoMessage() {}
func (*DataFrame) Descriptor() ([]byte, []int) {
return fileDescriptor_700b50b08ed8dbaf, []int{7}
}
func (m *DataFrame) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DataFrame.Unmarshal(m, b)
}
func (m *DataFrame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DataFrame.Marshal(b, m, deterministic)
}
func (m *DataFrame) XXX_Merge(src proto.Message) {
xxx_messageInfo_DataFrame.Merge(m, src)
}
func (m *DataFrame) XXX_Size() int {
return xxx_messageInfo_DataFrame.Size(m)
}
func (m *DataFrame) XXX_DiscardUnknown() {
xxx_messageInfo_DataFrame.DiscardUnknown(m)
}
var xxx_messageInfo_DataFrame proto.InternalMessageInfo
func (m *DataFrame) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *DataFrame) GetCompress() bool {
if m != nil {
return m.Compress
}
return false
}
func (m *DataFrame) GetCrc() string {
if m != nil {
return m.Crc
}
return ""
}
func (m *DataFrame) GetData() []byte {
if m != nil {
return m.Data
}
return nil
}
func (m *DataFrame) GetIndex() int32 {
if m != nil {
return m.Index
}
return 0
}
type ProxyFrame struct {
Type FRAME_TYPE `protobuf:"varint,1,opt,name=type,proto3,enum=FRAME_TYPE" json:"type,omitempty"`
LoginFrame *LoginFrame `protobuf:"bytes,2,opt,name=loginFrame,proto3" json:"loginFrame,omitempty"`
LoginRspFrame *LoginRspFrame `protobuf:"bytes,3,opt,name=loginRspFrame,proto3" json:"loginRspFrame,omitempty"`
DataFrame *DataFrame `protobuf:"bytes,4,opt,name=dataFrame,proto3" json:"dataFrame,omitempty"`
PingFrame *PingFrame `protobuf:"bytes,5,opt,name=pingFrame,proto3" json:"pingFrame,omitempty"`
PongFrame *PongFrame `protobuf:"bytes,6,opt,name=pongFrame,proto3" json:"pongFrame,omitempty"`
OpenFrame *OpenConnFrame `protobuf:"bytes,7,opt,name=openFrame,proto3" json:"openFrame,omitempty"`
OpenRspFrame *OpenConnRspFrame `protobuf:"bytes,8,opt,name=openRspFrame,proto3" json:"openRspFrame,omitempty"`
CloseFrame *CloseFrame `protobuf:"bytes,9,opt,name=closeFrame,proto3" json:"closeFrame,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ProxyFrame) Reset() { *m = ProxyFrame{} }
func (m *ProxyFrame) String() string { return proto.CompactTextString(m) }
func (*ProxyFrame) ProtoMessage() {}
func (*ProxyFrame) Descriptor() ([]byte, []int) {
return fileDescriptor_700b50b08ed8dbaf, []int{8}
}
func (m *ProxyFrame) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ProxyFrame.Unmarshal(m, b)
}
func (m *ProxyFrame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ProxyFrame.Marshal(b, m, deterministic)
}
func (m *ProxyFrame) XXX_Merge(src proto.Message) {
xxx_messageInfo_ProxyFrame.Merge(m, src)
}
func (m *ProxyFrame) XXX_Size() int {
return xxx_messageInfo_ProxyFrame.Size(m)
}
func (m *ProxyFrame) XXX_DiscardUnknown() {
xxx_messageInfo_ProxyFrame.DiscardUnknown(m)
}
var xxx_messageInfo_ProxyFrame proto.InternalMessageInfo
func (m *ProxyFrame) GetType() FRAME_TYPE {
if m != nil {
return m.Type
}
return FRAME_TYPE_LOGIN
}
func (m *ProxyFrame) GetLoginFrame() *LoginFrame {
if m != nil {
return m.LoginFrame
}
return nil
}
func (m *ProxyFrame) GetLoginRspFrame() *LoginRspFrame {
if m != nil {
return m.LoginRspFrame
}
return nil
}
func (m *ProxyFrame) GetDataFrame() *DataFrame {
if m != nil {
return m.DataFrame
}
return nil
}
func (m *ProxyFrame) GetPingFrame() *PingFrame {
if m != nil {
return m.PingFrame
}
return nil
}
func (m *ProxyFrame) GetPongFrame() *PongFrame {
if m != nil {
return m.PongFrame
}
return nil
}
func (m *ProxyFrame) GetOpenFrame() *OpenConnFrame {
if m != nil {
return m.OpenFrame
}
return nil
}
func (m *ProxyFrame) GetOpenRspFrame() *OpenConnRspFrame {
if m != nil {
return m.OpenRspFrame
}
return nil
}
func (m *ProxyFrame) GetCloseFrame() *CloseFrame {
if m != nil {
return m.CloseFrame
}
return nil
}
func init() {
proto.RegisterEnum("PROXY_PROTO", PROXY_PROTO_name, PROXY_PROTO_value)
proto.RegisterEnum("CLIENT_TYPE", CLIENT_TYPE_name, CLIENT_TYPE_value)
proto.RegisterEnum("FRAME_TYPE", FRAME_TYPE_name, FRAME_TYPE_value)
proto.RegisterType((*LoginFrame)(nil), "LoginFrame")
proto.RegisterType((*LoginRspFrame)(nil), "LoginRspFrame")
proto.RegisterType((*PingFrame)(nil), "PingFrame")
proto.RegisterType((*PongFrame)(nil), "PongFrame")
proto.RegisterType((*OpenConnFrame)(nil), "OpenConnFrame")
proto.RegisterType((*OpenConnRspFrame)(nil), "OpenConnRspFrame")
proto.RegisterType((*CloseFrame)(nil), "CloseFrame")
proto.RegisterType((*DataFrame)(nil), "DataFrame")
proto.RegisterType((*ProxyFrame)(nil), "ProxyFrame")
}
func init() { proto.RegisterFile("proxy.proto", fileDescriptor_700b50b08ed8dbaf) }
var fileDescriptor_700b50b08ed8dbaf = []byte{
// 634 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x54, 0x4d, 0x6f, 0x9b, 0x40,
0x10, 0x8d, 0x01, 0x7f, 0x30, 0xd8, 0xd6, 0x66, 0x55, 0x55, 0x56, 0x54, 0x29, 0x91, 0x4f, 0x51,
0x1a, 0x71, 0x70, 0x1a, 0xf5, 0xd4, 0x43, 0x4a, 0x48, 0x64, 0xc5, 0x31, 0x68, 0x70, 0xab, 0xa6,
0x97, 0x88, 0xc2, 0x36, 0x42, 0xb5, 0x01, 0x61, 0x0e, 0xf1, 0xbf, 0xe9, 0x6f, 0xe9, 0x2f, 0xab,
0x76, 0xf8, 0x74, 0x1a, 0xf5, 0xf6, 0x76, 0xdf, 0x9b, 0xdd, 0x79, 0xb3, 0x0f, 0xc0, 0x48, 0xb3,
0xe4, 0x79, 0x67, 0xa6, 0x59, 0x92, 0x27, 0xd3, 0x3f, 0x1d, 0x80, 0x45, 0xf2, 0x14, 0xc5, 0x37,
0x99, 0xbf, 0x11, 0xfc, 0x1c, 0x80, 0x58, 0x22, 0x27, 0x9d, 0x93, 0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