server_config.pb.go 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. // Code generated by protoc-gen-go.
  2. // source: v2ray.com/core/proxy/socks/server_config.proto
  3. // DO NOT EDIT!
  4. package socks
  5. import proto "github.com/golang/protobuf/proto"
  6. import fmt "fmt"
  7. import math "math"
  8. import com_v2ray_core_common_net "v2ray.com/core/common/net"
  9. // Reference imports to suppress errors if they are not otherwise used.
  10. var _ = proto.Marshal
  11. var _ = fmt.Errorf
  12. var _ = math.Inf
  13. type ServerConfig_AuthType int32
  14. const (
  15. ServerConfig_NO_AUTH ServerConfig_AuthType = 0
  16. ServerConfig_PASSWORD ServerConfig_AuthType = 1
  17. )
  18. var ServerConfig_AuthType_name = map[int32]string{
  19. 0: "NO_AUTH",
  20. 1: "PASSWORD",
  21. }
  22. var ServerConfig_AuthType_value = map[string]int32{
  23. "NO_AUTH": 0,
  24. "PASSWORD": 1,
  25. }
  26. func (x ServerConfig_AuthType) String() string {
  27. return proto.EnumName(ServerConfig_AuthType_name, int32(x))
  28. }
  29. func (ServerConfig_AuthType) EnumDescriptor() ([]byte, []int) { return fileDescriptor1, []int{0, 0} }
  30. type ServerConfig struct {
  31. AuthType ServerConfig_AuthType `protobuf:"varint,1,opt,name=auth_type,json=authType,enum=com.v2ray.core.proxy.socks.ServerConfig_AuthType" json:"auth_type,omitempty"`
  32. Accounts map[string]string `protobuf:"bytes,2,rep,name=accounts" json:"accounts,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
  33. Address *com_v2ray_core_common_net.AddressPB `protobuf:"bytes,3,opt,name=address" json:"address,omitempty"`
  34. UdpEnabled bool `protobuf:"varint,4,opt,name=udp_enabled,json=udpEnabled" json:"udp_enabled,omitempty"`
  35. Timeout uint32 `protobuf:"varint,5,opt,name=timeout" json:"timeout,omitempty"`
  36. }
  37. func (m *ServerConfig) Reset() { *m = ServerConfig{} }
  38. func (m *ServerConfig) String() string { return proto.CompactTextString(m) }
  39. func (*ServerConfig) ProtoMessage() {}
  40. func (*ServerConfig) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
  41. func (m *ServerConfig) GetAccounts() map[string]string {
  42. if m != nil {
  43. return m.Accounts
  44. }
  45. return nil
  46. }
  47. func (m *ServerConfig) GetAddress() *com_v2ray_core_common_net.AddressPB {
  48. if m != nil {
  49. return m.Address
  50. }
  51. return nil
  52. }
  53. func init() {
  54. proto.RegisterType((*ServerConfig)(nil), "com.v2ray.core.proxy.socks.ServerConfig")
  55. proto.RegisterEnum("com.v2ray.core.proxy.socks.ServerConfig_AuthType", ServerConfig_AuthType_name, ServerConfig_AuthType_value)
  56. }
  57. func init() { proto.RegisterFile("v2ray.com/core/proxy/socks/server_config.proto", fileDescriptor1) }
  58. var fileDescriptor1 = []byte{
  59. // 345 bytes of a gzipped FileDescriptorProto
  60. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x8c, 0x91, 0xd1, 0x4b, 0xeb, 0x30,
  61. 0x14, 0xc6, 0x6f, 0xd7, 0xbb, 0xdb, 0x2e, 0xdd, 0x2e, 0x23, 0xf8, 0x50, 0xf6, 0x62, 0x19, 0x8a,
  62. 0x7d, 0x4a, 0xb1, 0x82, 0x88, 0x82, 0xd0, 0xe9, 0xc0, 0xa7, 0x6d, 0x64, 0x13, 0xc1, 0x97, 0xd2,
  63. 0xa5, 0x47, 0x37, 0xb6, 0x36, 0x25, 0x4d, 0x86, 0xfd, 0x33, 0xfc, 0x8f, 0xc5, 0x74, 0x1b, 0x3a,
  64. 0x10, 0x7c, 0x3b, 0xe7, 0xf0, 0x7d, 0xbf, 0xe4, 0x7c, 0x07, 0x91, 0x4d, 0x28, 0x92, 0x8a, 0x30,
  65. 0x9e, 0x05, 0x8c, 0x0b, 0x08, 0x0a, 0xc1, 0xdf, 0xaa, 0xa0, 0xe4, 0x6c, 0x55, 0x06, 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