config.pb.go 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. package http
  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. // Config for HTTP proxy server.
  17. type ServerConfig struct {
  18. Timeout uint32 `protobuf:"varint,1,opt,name=timeout,proto3" json:"timeout,omitempty"` // Deprecated: Do not use.
  19. Accounts map[string]string `protobuf:"bytes,2,rep,name=accounts,proto3" json:"accounts,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  20. AllowTransparent bool `protobuf:"varint,3,opt,name=allow_transparent,json=allowTransparent,proto3" json:"allow_transparent,omitempty"`
  21. UserLevel uint32 `protobuf:"varint,4,opt,name=user_level,json=userLevel,proto3" json:"user_level,omitempty"`
  22. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  23. XXX_unrecognized []byte `json:"-"`
  24. XXX_sizecache int32 `json:"-"`
  25. }
  26. func (m *ServerConfig) Reset() { *m = ServerConfig{} }
  27. func (m *ServerConfig) String() string { return proto.CompactTextString(m) }
  28. func (*ServerConfig) ProtoMessage() {}
  29. func (*ServerConfig) Descriptor() ([]byte, []int) {
  30. return fileDescriptor_e66c3db3a635d8e4, []int{0}
  31. }
  32. func (m *ServerConfig) XXX_Unmarshal(b []byte) error {
  33. return xxx_messageInfo_ServerConfig.Unmarshal(m, b)
  34. }
  35. func (m *ServerConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  36. return xxx_messageInfo_ServerConfig.Marshal(b, m, deterministic)
  37. }
  38. func (m *ServerConfig) XXX_Merge(src proto.Message) {
  39. xxx_messageInfo_ServerConfig.Merge(m, src)
  40. }
  41. func (m *ServerConfig) XXX_Size() int {
  42. return xxx_messageInfo_ServerConfig.Size(m)
  43. }
  44. func (m *ServerConfig) XXX_DiscardUnknown() {
  45. xxx_messageInfo_ServerConfig.DiscardUnknown(m)
  46. }
  47. var xxx_messageInfo_ServerConfig proto.InternalMessageInfo
  48. // Deprecated: Do not use.
  49. func (m *ServerConfig) GetTimeout() uint32 {
  50. if m != nil {
  51. return m.Timeout
  52. }
  53. return 0
  54. }
  55. func (m *ServerConfig) GetAccounts() map[string]string {
  56. if m != nil {
  57. return m.Accounts
  58. }
  59. return nil
  60. }
  61. func (m *ServerConfig) GetAllowTransparent() bool {
  62. if m != nil {
  63. return m.AllowTransparent
  64. }
  65. return false
  66. }
  67. func (m *ServerConfig) GetUserLevel() uint32 {
  68. if m != nil {
  69. return m.UserLevel
  70. }
  71. return 0
  72. }
  73. // ClientConfig for HTTP proxy client.
  74. type ClientConfig struct {
  75. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  76. XXX_unrecognized []byte `json:"-"`
  77. XXX_sizecache int32 `json:"-"`
  78. }
  79. func (m *ClientConfig) Reset() { *m = ClientConfig{} }
  80. func (m *ClientConfig) String() string { return proto.CompactTextString(m) }
  81. func (*ClientConfig) ProtoMessage() {}
  82. func (*ClientConfig) Descriptor() ([]byte, []int) {
  83. return fileDescriptor_e66c3db3a635d8e4, []int{1}
  84. }
  85. func (m *ClientConfig) XXX_Unmarshal(b []byte) error {
  86. return xxx_messageInfo_ClientConfig.Unmarshal(m, b)
  87. }
  88. func (m *ClientConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  89. return xxx_messageInfo_ClientConfig.Marshal(b, m, deterministic)
  90. }
  91. func (m *ClientConfig) XXX_Merge(src proto.Message) {
  92. xxx_messageInfo_ClientConfig.Merge(m, src)
  93. }
  94. func (m *ClientConfig) XXX_Size() int {
  95. return xxx_messageInfo_ClientConfig.Size(m)
  96. }
  97. func (m *ClientConfig) XXX_DiscardUnknown() {
  98. xxx_messageInfo_ClientConfig.DiscardUnknown(m)
  99. }
  100. var xxx_messageInfo_ClientConfig proto.InternalMessageInfo
  101. func init() {
  102. proto.RegisterType((*ServerConfig)(nil), "v2ray.core.proxy.http.ServerConfig")
  103. proto.RegisterMapType((map[string]string)(nil), "v2ray.core.proxy.http.ServerConfig.AccountsEntry")
  104. proto.RegisterType((*ClientConfig)(nil), "v2ray.core.proxy.http.ClientConfig")
  105. }
  106. func init() {
  107. proto.RegisterFile("v2ray.com/core/proxy/http/config.proto", fileDescriptor_e66c3db3a635d8e4)
  108. }
  109. var fileDescriptor_e66c3db3a635d8e4 = []byte{
  110. // 296 bytes of a gzipped FileDescriptorProto
  111. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0xcf, 0x4a, 0x33, 0x31,
  112. 0x14, 0xc5, 0x99, 0x69, 0xbf, 0xcf, 0xf6, 0xda, 0x4a, 0x0d, 0x16, 0x46, 0x51, 0x28, 0x5d, 0x48,
  113. 0x41, 0xc8, 0x60, 0xdd, 0x88, 0x5d, 0xd9, 0x22, 0xb8, 0x50, 0x28, 0x51, 0x5c, 0xb8, 0x29, 0x31,
  114. 0x5c, 0xb5, 0x98, 0x26, 0x43, 0xe6, 0xce, 0xe8, 0xec, 0x7d, 0x1a, 0x9f, 0x52, 0x92, 0x5a, 0xff,
  115. 0x40, 0x57, 0x49, 0x7e, 0xe7, 0xe4, 0xe4, 0x9e, 0xc0, 0x61, 0x39, 0x74, 0xb2, 0xe2, 0xca, 0x2e,
  116. 0x52, 0x65, 0x1d, 0xa6, 0x99, 0xb3, 0x6f, 0x55, 0xfa, 0x4c, 0x94, 0xa5, 0xca, 0x9a, 0xc7, 0xf9,
  117. 0x13, 0xcf, 0x9c, 0x25, 0xcb, 0xba, 0x2b, 0x9f, 0x43, 0x1e, 0x3c, 0xdc, 0x7b, 0xfa, 0xef, 0x31,
  118. 0xb4, 0x6e, 0xd0, 0x95, 0xe8, 0x26, 0xc1, 0xcd, 0xf6, 0x61, 0x83, 0xe6, 0x0b, 0xb4, 0x05, 0x25,
  119. 0x51, 0x2f, 0x1a, 0xb4, 0xc7, 0x71, 0x12, 0x89, 0x15, 0x62, 0xd7, 0xd0, 0x90, 0x4a, 0xd9, 0xc2,
  120. 0x50, 0x9e, 0xc4, 0xbd, 0xda, 0x60, 0x73, 0x78, 0xcc, 0xd7, 0x06, 0xf3, 0xdf, 0xa1, 0xfc, 0xfc,
  121. 0xeb, 0xce, 0x85, 0x21, 0x57, 0x89, 0xef, 0x08, 0x76, 0x04, 0xdb, 0x52, 0x6b, 0xfb, 0x3a, 0x23,
  122. 0x27, 0x4d, 0x9e, 0x49, 0x87, 0x86, 0x92, 0x5a, 0x2f, 0x1a, 0x34, 0x44, 0x27, 0x08, 0xb7, 0x3f,
  123. 0x9c, 0x1d, 0x00, 0x14, 0x39, 0xba, 0x99, 0xc6, 0x12, 0x75, 0x52, 0xf7, 0xc3, 0x89, 0xa6, 0x27,
  124. 0x57, 0x1e, 0xec, 0x8d, 0xa0, 0xfd, 0xe7, 0x19, 0xd6, 0x81, 0xda, 0x0b, 0x56, 0xa1, 0x45, 0x53,
  125. 0xf8, 0x2d, 0xdb, 0x81, 0x7f, 0xa5, 0xd4, 0x05, 0x26, 0x71, 0x60, 0xcb, 0xc3, 0x59, 0x7c, 0x1a,
  126. 0xf5, 0xb7, 0xa0, 0x35, 0xd1, 0x73, 0x34, 0xb4, 0x1c, 0x78, 0x3c, 0x82, 0x5d, 0x65, 0x17, 0xeb,
  127. 0xab, 0x4d, 0xa3, 0xfb, 0xba, 0x5f, 0x3f, 0xe2, 0xee, 0xdd, 0x50, 0xc8, 0x8a, 0x4f, 0xbc, 0x3e,
  128. 0x0d, 0xfa, 0x25, 0x51, 0xf6, 0xf0, 0x3f, 0xfc, 0xf8, 0xc9, 0x67, 0x00, 0x00, 0x00, 0xff, 0xff,
  129. 0x69, 0x94, 0x9f, 0xa7, 0x9b, 0x01, 0x00, 0x00,
  130. }