config.pb.go 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. package websocket
  2. import (
  3. fmt "fmt"
  4. proto "github.com/golang/protobuf/proto"
  5. math "math"
  6. )
  7. // Reference imports to suppress errors if they are not otherwise used.
  8. var _ = proto.Marshal
  9. var _ = fmt.Errorf
  10. var _ = math.Inf
  11. // This is a compile-time assertion to ensure that this generated file
  12. // is compatible with the proto package it is being compiled against.
  13. // A compilation error at this line likely means your copy of the
  14. // proto package needs to be updated.
  15. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  16. type Header struct {
  17. Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
  18. Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
  19. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  20. XXX_unrecognized []byte `json:"-"`
  21. XXX_sizecache int32 `json:"-"`
  22. }
  23. func (m *Header) Reset() { *m = Header{} }
  24. func (m *Header) String() string { return proto.CompactTextString(m) }
  25. func (*Header) ProtoMessage() {}
  26. func (*Header) Descriptor() ([]byte, []int) {
  27. return fileDescriptor_c4869c9c0fc9b72f, []int{0}
  28. }
  29. func (m *Header) XXX_Unmarshal(b []byte) error {
  30. return xxx_messageInfo_Header.Unmarshal(m, b)
  31. }
  32. func (m *Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  33. return xxx_messageInfo_Header.Marshal(b, m, deterministic)
  34. }
  35. func (m *Header) XXX_Merge(src proto.Message) {
  36. xxx_messageInfo_Header.Merge(m, src)
  37. }
  38. func (m *Header) XXX_Size() int {
  39. return xxx_messageInfo_Header.Size(m)
  40. }
  41. func (m *Header) XXX_DiscardUnknown() {
  42. xxx_messageInfo_Header.DiscardUnknown(m)
  43. }
  44. var xxx_messageInfo_Header proto.InternalMessageInfo
  45. func (m *Header) GetKey() string {
  46. if m != nil {
  47. return m.Key
  48. }
  49. return ""
  50. }
  51. func (m *Header) GetValue() string {
  52. if m != nil {
  53. return m.Value
  54. }
  55. return ""
  56. }
  57. type Config struct {
  58. // URL path to the WebSocket service. Empty value means root(/).
  59. Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
  60. Header []*Header `protobuf:"bytes,3,rep,name=header,proto3" json:"header,omitempty"`
  61. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  62. XXX_unrecognized []byte `json:"-"`
  63. XXX_sizecache int32 `json:"-"`
  64. }
  65. func (m *Config) Reset() { *m = Config{} }
  66. func (m *Config) String() string { return proto.CompactTextString(m) }
  67. func (*Config) ProtoMessage() {}
  68. func (*Config) Descriptor() ([]byte, []int) {
  69. return fileDescriptor_c4869c9c0fc9b72f, []int{1}
  70. }
  71. func (m *Config) XXX_Unmarshal(b []byte) error {
  72. return xxx_messageInfo_Config.Unmarshal(m, b)
  73. }
  74. func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  75. return xxx_messageInfo_Config.Marshal(b, m, deterministic)
  76. }
  77. func (m *Config) XXX_Merge(src proto.Message) {
  78. xxx_messageInfo_Config.Merge(m, src)
  79. }
  80. func (m *Config) XXX_Size() int {
  81. return xxx_messageInfo_Config.Size(m)
  82. }
  83. func (m *Config) XXX_DiscardUnknown() {
  84. xxx_messageInfo_Config.DiscardUnknown(m)
  85. }
  86. var xxx_messageInfo_Config proto.InternalMessageInfo
  87. func (m *Config) GetPath() string {
  88. if m != nil {
  89. return m.Path
  90. }
  91. return ""
  92. }
  93. func (m *Config) GetHeader() []*Header {
  94. if m != nil {
  95. return m.Header
  96. }
  97. return nil
  98. }
  99. func init() {
  100. proto.RegisterType((*Header)(nil), "v2ray.core.transport.internet.websocket.Header")
  101. proto.RegisterType((*Config)(nil), "v2ray.core.transport.internet.websocket.Config")
  102. }
  103. func init() {
  104. proto.RegisterFile("v2ray.com/core/transport/internet/websocket/config.proto", fileDescriptor_c4869c9c0fc9b72f)
  105. }
  106. var fileDescriptor_c4869c9c0fc9b72f = []byte{
  107. // 229 bytes of a gzipped FileDescriptorProto
  108. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xb2, 0x28, 0x33, 0x2a, 0x4a,
  109. 0xac, 0xd4, 0x4b, 0xce, 0xcf, 0xd5, 0x4f, 0xce, 0x2f, 0x4a, 0xd5, 0x2f, 0x29, 0x4a, 0xcc, 0x2b,
  110. 0x2e, 0xc8, 0x2f, 0x2a, 0xd1, 0xcf, 0xcc, 0x2b, 0x49, 0x2d, 0xca, 0x4b, 0x2d, 0xd1, 0x2f, 0x4f,
  111. 0x4d, 0x2a, 0xce, 0x4f, 0xce, 0x4e, 0x2d, 0xd1, 0x4f, 0xce, 0xcf, 0x4b, 0xcb, 0x4c, 0xd7, 0x2b,
  112. 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x52, 0x87, 0xe9, 0x2c, 0x4a, 0xd5, 0x83, 0xeb, 0xd2, 0x83, 0xe9,
  113. 0xd2, 0x83, 0xeb, 0x52, 0x32, 0xe0, 0x62, 0xf3, 0x48, 0x4d, 0x4c, 0x49, 0x2d, 0x12, 0x12, 0xe0,
  114. 0x62, 0xce, 0x4e, 0xad, 0x94, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x0c, 0x02, 0x31, 0x85, 0x44, 0xb8,
  115. 0x58, 0xcb, 0x12, 0x73, 0x4a, 0x53, 0x25, 0x98, 0xc0, 0x62, 0x10, 0x8e, 0x52, 0x36, 0x17, 0x9b,
  116. 0x33, 0xd8, 0x2a, 0x21, 0x21, 0x2e, 0x96, 0x82, 0xc4, 0x92, 0x0c, 0xa8, 0x34, 0x98, 0x2d, 0xe4,
  117. 0xce, 0xc5, 0x96, 0x01, 0x36, 0x4f, 0x82, 0x59, 0x81, 0x59, 0x83, 0xdb, 0x48, 0x5f, 0x8f, 0x48,
  118. 0x97, 0xe8, 0x41, 0x9c, 0x11, 0x04, 0xd5, 0xee, 0xc5, 0xc2, 0xc1, 0x28, 0xc0, 0xe4, 0x94, 0xc2,
  119. 0xa5, 0x9d, 0x9c, 0x9f, 0x4b, 0xac, 0x19, 0x01, 0x8c, 0x51, 0x9c, 0x70, 0xce, 0x2a, 0x26, 0xf5,
  120. 0x30, 0xa3, 0xa0, 0xc4, 0x4a, 0x3d, 0x67, 0x90, 0xb6, 0x10, 0xb8, 0x36, 0x4f, 0x98, 0xb6, 0x70,
  121. 0x98, 0xca, 0x24, 0x36, 0x70, 0xa0, 0x19, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0xf5, 0x7e, 0x60,
  122. 0xf9, 0x70, 0x01, 0x00, 0x00,
  123. }