config.pb.go 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. // Code generated by protoc-gen-go.
  2. // source: v2ray.com/core/common/log/config.proto
  3. // DO NOT EDIT!
  4. /*
  5. Package log is a generated protocol buffer package.
  6. It is generated from these files:
  7. v2ray.com/core/common/log/config.proto
  8. It has these top-level messages:
  9. Config
  10. */
  11. package log
  12. import proto "github.com/golang/protobuf/proto"
  13. import fmt "fmt"
  14. import math "math"
  15. // Reference imports to suppress errors if they are not otherwise used.
  16. var _ = proto.Marshal
  17. var _ = fmt.Errorf
  18. var _ = math.Inf
  19. // This is a compile-time assertion to ensure that this generated file
  20. // is compatible with the proto package it is being compiled against.
  21. // A compilation error at this line likely means your copy of the
  22. // proto package needs to be updated.
  23. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  24. type LogType int32
  25. const (
  26. LogType_None LogType = 0
  27. LogType_Console LogType = 1
  28. LogType_File LogType = 2
  29. LogType_Event LogType = 3
  30. )
  31. var LogType_name = map[int32]string{
  32. 0: "None",
  33. 1: "Console",
  34. 2: "File",
  35. 3: "Event",
  36. }
  37. var LogType_value = map[string]int32{
  38. "None": 0,
  39. "Console": 1,
  40. "File": 2,
  41. "Event": 3,
  42. }
  43. func (x LogType) String() string {
  44. return proto.EnumName(LogType_name, int32(x))
  45. }
  46. func (LogType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  47. type LogLevel int32
  48. const (
  49. LogLevel_Disabled LogLevel = 0
  50. LogLevel_Error LogLevel = 1
  51. LogLevel_Warning LogLevel = 2
  52. LogLevel_Info LogLevel = 3
  53. LogLevel_Debug LogLevel = 4
  54. )
  55. var LogLevel_name = map[int32]string{
  56. 0: "Disabled",
  57. 1: "Error",
  58. 2: "Warning",
  59. 3: "Info",
  60. 4: "Debug",
  61. }
  62. var LogLevel_value = map[string]int32{
  63. "Disabled": 0,
  64. "Error": 1,
  65. "Warning": 2,
  66. "Info": 3,
  67. "Debug": 4,
  68. }
  69. func (x LogLevel) String() string {
  70. return proto.EnumName(LogLevel_name, int32(x))
  71. }
  72. func (LogLevel) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
  73. type Config struct {
  74. ErrorLogType LogType `protobuf:"varint,1,opt,name=error_log_type,json=errorLogType,enum=v2ray.core.common.log.LogType" json:"error_log_type,omitempty"`
  75. ErrorLogLevel LogLevel `protobuf:"varint,2,opt,name=error_log_level,json=errorLogLevel,enum=v2ray.core.common.log.LogLevel" json:"error_log_level,omitempty"`
  76. ErrorLogPath string `protobuf:"bytes,3,opt,name=error_log_path,json=errorLogPath" json:"error_log_path,omitempty"`
  77. AccessLogType LogType `protobuf:"varint,4,opt,name=access_log_type,json=accessLogType,enum=v2ray.core.common.log.LogType" json:"access_log_type,omitempty"`
  78. AccessLogPath string `protobuf:"bytes,5,opt,name=access_log_path,json=accessLogPath" json:"access_log_path,omitempty"`
  79. }
  80. func (m *Config) Reset() { *m = Config{} }
  81. func (m *Config) String() string { return proto.CompactTextString(m) }
  82. func (*Config) ProtoMessage() {}
  83. func (*Config) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  84. func init() {
  85. proto.RegisterType((*Config)(nil), "v2ray.core.common.log.Config")
  86. proto.RegisterEnum("v2ray.core.common.log.LogType", LogType_name, LogType_value)
  87. proto.RegisterEnum("v2ray.core.common.log.LogLevel", LogLevel_name, LogLevel_value)
  88. }
  89. func init() { proto.RegisterFile("v2ray.com/core/common/log/config.proto", fileDescriptor0) }
  90. var fileDescriptor0 = []byte{
  91. // 322 bytes of a gzipped FileDescriptorProto
  92. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x8c, 0x91, 0x6d, 0x4b, 0xf3, 0x30,
  93. 0x14, 0x86, 0xd7, 0x76, 0xaf, 0xd9, 0x5b, 0x08, 0x3c, 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 0xaf, 0x3d, 0xf8, 0xe1, 0xb1, 0x71, 0x15, 0x1b, 0x57,
  105. 0x70, 0x26, 0x6f, 0x74, 0x47, 0x6a, 0xf9, 0x48, 0x9d, 0x94, 0x1f, 0x51, 0x01, 0x2d, 0xb1, 0x26,
  106. 0xa9, 0x4d, 0x51, 0xa5, 0x28, 0x81, 0x3a, 0xe6, 0x7b, 0x11, 0x49, 0xa0, 0x2e, 0x6b, 0x90, 0xca,
  107. 0xfc, 0x00, 0x2a, 0xa3, 0xde, 0x68, 0x4e, 0xea, 0x5f, 0x8b, 0xb5, 0x48, 0x7d, 0x16, 0xa5, 0xe1,
  108. 0x56, 0xc2, 0x2b, 0x2d, 0x59, 0xc8, 0x2c, 0x44, 0x1d, 0xa3, 0x79, 0x0e, 0xb5, 0x8a, 0x94, 0xa0,
  109. 0xae, 0xd1, 0x3c, 0xa8, 0x1d, 0x52, 0xcf, 0x10, 0x33, 0xd8, 0xbe, 0x09, 0x5a, 0x9e, 0xdc, 0x90,
  110. 0xff, 0x1c, 0xe3, 0xf3, 0x9b, 0x4d, 0x9a, 0xa7, 0x3b, 0xae, 0xcc, 0xb9, 0x5f, 0x3c, 0x89, 0x62,
  111. 0x5b, 0xb5, 0xa7, 0xbf, 0xfd, 0x08, 0x00, 0x00, 0xff, 0xff, 0x11, 0x55, 0x7e, 0x04, 0x24, 0x02,
  112. 0x00, 0x00,
  113. }