config.pb.go 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. package http
  2. import proto "github.com/golang/protobuf/proto"
  3. import fmt "fmt"
  4. import math "math"
  5. // Reference imports to suppress errors if they are not otherwise used.
  6. var _ = proto.Marshal
  7. var _ = fmt.Errorf
  8. var _ = math.Inf
  9. // This is a compile-time assertion to ensure that this generated file
  10. // is compatible with the proto package it is being compiled against.
  11. // A compilation error at this line likely means your copy of the
  12. // proto package needs to be updated.
  13. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  14. type Header struct {
  15. // "Accept", "Cookie", etc
  16. Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
  17. // Each entry must be valid in one piece. Random entry will be chosen if multiple entries present.
  18. Value []string `protobuf:"bytes,2,rep,name=value" json:"value,omitempty"`
  19. }
  20. func (m *Header) Reset() { *m = Header{} }
  21. func (m *Header) String() string { return proto.CompactTextString(m) }
  22. func (*Header) ProtoMessage() {}
  23. func (*Header) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  24. func (m *Header) GetName() string {
  25. if m != nil {
  26. return m.Name
  27. }
  28. return ""
  29. }
  30. func (m *Header) GetValue() []string {
  31. if m != nil {
  32. return m.Value
  33. }
  34. return nil
  35. }
  36. // HTTP version. Default value "1.1".
  37. type Version struct {
  38. Value string `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"`
  39. }
  40. func (m *Version) Reset() { *m = Version{} }
  41. func (m *Version) String() string { return proto.CompactTextString(m) }
  42. func (*Version) ProtoMessage() {}
  43. func (*Version) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
  44. func (m *Version) GetValue() string {
  45. if m != nil {
  46. return m.Value
  47. }
  48. return ""
  49. }
  50. // HTTP method. Default value "GET".
  51. type Method struct {
  52. Value string `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"`
  53. }
  54. func (m *Method) Reset() { *m = Method{} }
  55. func (m *Method) String() string { return proto.CompactTextString(m) }
  56. func (*Method) ProtoMessage() {}
  57. func (*Method) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
  58. func (m *Method) GetValue() string {
  59. if m != nil {
  60. return m.Value
  61. }
  62. return ""
  63. }
  64. type RequestConfig struct {
  65. // Full HTTP version like "1.1".
  66. Version *Version `protobuf:"bytes,1,opt,name=version" json:"version,omitempty"`
  67. // GET, POST, CONNECT etc
  68. Method *Method `protobuf:"bytes,2,opt,name=method" json:"method,omitempty"`
  69. // URI like "/login.php"
  70. Uri []string `protobuf:"bytes,3,rep,name=uri" json:"uri,omitempty"`
  71. Header []*Header `protobuf:"bytes,4,rep,name=header" json:"header,omitempty"`
  72. }
  73. func (m *RequestConfig) Reset() { *m = RequestConfig{} }
  74. func (m *RequestConfig) String() string { return proto.CompactTextString(m) }
  75. func (*RequestConfig) ProtoMessage() {}
  76. func (*RequestConfig) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
  77. func (m *RequestConfig) GetVersion() *Version {
  78. if m != nil {
  79. return m.Version
  80. }
  81. return nil
  82. }
  83. func (m *RequestConfig) GetMethod() *Method {
  84. if m != nil {
  85. return m.Method
  86. }
  87. return nil
  88. }
  89. func (m *RequestConfig) GetUri() []string {
  90. if m != nil {
  91. return m.Uri
  92. }
  93. return nil
  94. }
  95. func (m *RequestConfig) GetHeader() []*Header {
  96. if m != nil {
  97. return m.Header
  98. }
  99. return nil
  100. }
  101. type Status struct {
  102. // Status code. Default "200".
  103. Code string `protobuf:"bytes,1,opt,name=code" json:"code,omitempty"`
  104. // Statue reason. Default "OK".
  105. Reason string `protobuf:"bytes,2,opt,name=reason" json:"reason,omitempty"`
  106. }
  107. func (m *Status) Reset() { *m = Status{} }
  108. func (m *Status) String() string { return proto.CompactTextString(m) }
  109. func (*Status) ProtoMessage() {}
  110. func (*Status) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
  111. func (m *Status) GetCode() string {
  112. if m != nil {
  113. return m.Code
  114. }
  115. return ""
  116. }
  117. func (m *Status) GetReason() string {
  118. if m != nil {
  119. return m.Reason
  120. }
  121. return ""
  122. }
  123. type ResponseConfig struct {
  124. Version *Version `protobuf:"bytes,1,opt,name=version" json:"version,omitempty"`
  125. Status *Status `protobuf:"bytes,2,opt,name=status" json:"status,omitempty"`
  126. Header []*Header `protobuf:"bytes,3,rep,name=header" json:"header,omitempty"`
  127. }
  128. func (m *ResponseConfig) Reset() { *m = ResponseConfig{} }
  129. func (m *ResponseConfig) String() string { return proto.CompactTextString(m) }
  130. func (*ResponseConfig) ProtoMessage() {}
  131. func (*ResponseConfig) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
  132. func (m *ResponseConfig) GetVersion() *Version {
  133. if m != nil {
  134. return m.Version
  135. }
  136. return nil
  137. }
  138. func (m *ResponseConfig) GetStatus() *Status {
  139. if m != nil {
  140. return m.Status
  141. }
  142. return nil
  143. }
  144. func (m *ResponseConfig) GetHeader() []*Header {
  145. if m != nil {
  146. return m.Header
  147. }
  148. return nil
  149. }
  150. type Config struct {
  151. // Settings for authenticating requests. If not set, client side will not send authenication header, and server side will bypass authentication.
  152. Request *RequestConfig `protobuf:"bytes,1,opt,name=request" json:"request,omitempty"`
  153. // Settings for authenticating responses. If not set, client side will bypass authentication, and server side will not send authentication header.
  154. Response *ResponseConfig `protobuf:"bytes,2,opt,name=response" json:"response,omitempty"`
  155. }
  156. func (m *Config) Reset() { *m = Config{} }
  157. func (m *Config) String() string { return proto.CompactTextString(m) }
  158. func (*Config) ProtoMessage() {}
  159. func (*Config) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
  160. func (m *Config) GetRequest() *RequestConfig {
  161. if m != nil {
  162. return m.Request
  163. }
  164. return nil
  165. }
  166. func (m *Config) GetResponse() *ResponseConfig {
  167. if m != nil {
  168. return m.Response
  169. }
  170. return nil
  171. }
  172. func init() {
  173. proto.RegisterType((*Header)(nil), "v2ray.core.transport.internet.headers.http.Header")
  174. proto.RegisterType((*Version)(nil), "v2ray.core.transport.internet.headers.http.Version")
  175. proto.RegisterType((*Method)(nil), "v2ray.core.transport.internet.headers.http.Method")
  176. proto.RegisterType((*RequestConfig)(nil), "v2ray.core.transport.internet.headers.http.RequestConfig")
  177. proto.RegisterType((*Status)(nil), "v2ray.core.transport.internet.headers.http.Status")
  178. proto.RegisterType((*ResponseConfig)(nil), "v2ray.core.transport.internet.headers.http.ResponseConfig")
  179. proto.RegisterType((*Config)(nil), "v2ray.core.transport.internet.headers.http.Config")
  180. }
  181. func init() {
  182. proto.RegisterFile("v2ray.com/core/transport/internet/headers/http/config.proto", fileDescriptor0)
  183. }
  184. var fileDescriptor0 = []byte{
  185. // 394 bytes of a gzipped FileDescriptorProto
  186. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x94, 0xbf, 0x8a, 0xdb, 0x40,
  187. 0x10, 0xc6, 0x91, 0xe4, 0xc8, 0xf1, 0x84, 0x84, 0xb0, 0x84, 0xa0, 0x2a, 0x31, 0xaa, 0x8c, 0x8b,
  188. 0x15, 0xc8, 0x69, 0x92, 0x74, 0x71, 0xe3, 0x04, 0x0c, 0x61, 0x1d, 0x5c, 0xa4, 0xdb, 0xc8, 0x93,
  189. 0x58, 0x10, 0xef, 0x2a, 0xbb, 0x2b, 0x83, 0xdf, 0x20, 0xcf, 0x72, 0xfd, 0x3d, 0xdb, 0xb5, 0xc7,
  190. 0xfe, 0x91, 0xce, 0x57, 0x1c, 0x9c, 0xee, 0xb8, 0x4a, 0x33, 0x68, 0xbe, 0x1f, 0xf3, 0x7d, 0x5a,
  191. 0x2d, 0x7c, 0x3e, 0x96, 0x8a, 0x9f, 0x68, 0x25, 0x0f, 0x45, 0x25, 0x15, 0x16, 0x46, 0x71, 0xa1,
  192. 0x1b, 0xa9, 0x4c, 0x51, 0x0b, 0x83, 0x4a, 0xa0, 0x29, 0xf6, 0xc8, 0x77, 0xa8, 0x74, 0xb1, 0x37,
  193. 0xa6, 0x29, 0x2a, 0x29, 0x7e, 0xd7, 0x7f, 0x68, 0xa3, 0xa4, 0x91, 0x64, 0xde, 0x89, 0x15, 0xd2,
  194. 0x5e, 0x48, 0x3b, 0x21, 0x0d, 0x42, 0x6a, 0x85, 0x79, 0x09, 0xe9, 0xca, 0xf5, 0x84, 0xc0, 0x48,
  195. 0xf0, 0x03, 0x66, 0xd1, 0x34, 0x9a, 0x4d, 0x98, 0xab, 0xc9, 0x1b, 0x78, 0x76, 0xe4, 0x7f, 0x5b,
  196. 0xcc, 0xe2, 0x69, 0x32, 0x9b, 0x30, 0xdf, 0xe4, 0xef, 0x61, 0xbc, 0x45, 0xa5, 0x6b, 0x29, 0x6e,
  197. 0x06, 0xbc, 0x2a, 0x0c, 0xbc, 0x83, 0x74, 0x8d, 0x66, 0x2f, 0x77, 0x77, 0xbc, 0xff, 0x1f, 0xc3,
  198. 0x4b, 0x86, 0xff, 0x5a, 0xd4, 0x66, 0xe9, 0x16, 0x27, 0x6b, 0x18, 0x1f, 0x3d, 0xd2, 0x4d, 0xbe,
  199. 0x28, 0x17, 0xf4, 0xfe, 0x26, 0x68, 0xd8, 0x86, 0x75, 0x0c, 0xf2, 0x0d, 0xd2, 0x83, 0x5b, 0x20,
  200. 0x8b, 0x1d, 0xad, 0x1c, 0x42, 0xf3, 0xab, 0xb3, 0x40, 0x20, 0xaf, 0x21, 0x69, 0x55, 0x9d, 0x25,
  201. 0x2e, 0x01, 0x5b, 0x5a, 0xba, 0x17, 0x64, 0xa3, 0x69, 0x32, 0x94, 0xee, 0xd3, 0x66, 0x81, 0x90,
  202. 0x7f, 0x80, 0x74, 0x63, 0xb8, 0x69, 0xb5, 0xcd, 0xbf, 0x92, 0xbb, 0x3e, 0x7f, 0x5b, 0x93, 0xb7,
  203. 0x90, 0x2a, 0xe4, 0x5a, 0x0a, 0xe7, 0x63, 0xc2, 0x42, 0x97, 0x5f, 0x45, 0xf0, 0x8a, 0xa1, 0x6e,
  204. 0xa4, 0xd0, 0xf8, 0x64, 0x09, 0x6a, 0xb7, 0xd7, 0x43, 0x12, 0xf4, 0x8e, 0x58, 0x20, 0x9c, 0xe5,
  205. 0x95, 0x3c, 0x3a, 0xaf, 0xcb, 0x08, 0xd2, 0xe0, 0x78, 0x03, 0x63, 0xe5, 0x0f, 0x51, 0x70, 0xfc,
  206. 0x71, 0x08, 0xf7, 0xd6, 0xf9, 0x63, 0x1d, 0x89, 0x6c, 0xe1, 0xb9, 0x0a, 0xc1, 0x06, 0xe7, 0x9f,
  207. 0x86, 0x51, 0xcf, 0x3f, 0x0a, 0xeb, 0x59, 0x5f, 0x10, 0xec, 0xcf, 0x3c, 0x00, 0xf5, 0x3d, 0xfa,
  208. 0x39, 0xb2, 0xcf, 0x8b, 0x78, 0xbe, 0x2d, 0x19, 0x3f, 0xd1, 0xa5, 0x15, 0xfd, 0xe8, 0x45, 0x5f,
  209. 0x3b, 0xd1, 0x2a, 0x88, 0x56, 0xc6, 0x34, 0xbf, 0x52, 0x77, 0x03, 0x2c, 0xae, 0x03, 0x00, 0x00,
  210. 0xff, 0xff, 0x10, 0xea, 0x22, 0x27, 0x40, 0x04, 0x00, 0x00,
  211. }