config.pb.go 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. package log
  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 LogType int32
  15. const (
  16. LogType_None LogType = 0
  17. LogType_Console LogType = 1
  18. LogType_File LogType = 2
  19. LogType_Event LogType = 3
  20. )
  21. var LogType_name = map[int32]string{
  22. 0: "None",
  23. 1: "Console",
  24. 2: "File",
  25. 3: "Event",
  26. }
  27. var LogType_value = map[string]int32{
  28. "None": 0,
  29. "Console": 1,
  30. "File": 2,
  31. "Event": 3,
  32. }
  33. func (x LogType) String() string {
  34. return proto.EnumName(LogType_name, int32(x))
  35. }
  36. func (LogType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  37. type LogLevel int32
  38. const (
  39. LogLevel_Disabled LogLevel = 0
  40. LogLevel_Error LogLevel = 1
  41. LogLevel_Warning LogLevel = 2
  42. LogLevel_Info LogLevel = 3
  43. LogLevel_Debug LogLevel = 4
  44. )
  45. var LogLevel_name = map[int32]string{
  46. 0: "Disabled",
  47. 1: "Error",
  48. 2: "Warning",
  49. 3: "Info",
  50. 4: "Debug",
  51. }
  52. var LogLevel_value = map[string]int32{
  53. "Disabled": 0,
  54. "Error": 1,
  55. "Warning": 2,
  56. "Info": 3,
  57. "Debug": 4,
  58. }
  59. func (x LogLevel) String() string {
  60. return proto.EnumName(LogLevel_name, int32(x))
  61. }
  62. func (LogLevel) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
  63. type Config struct {
  64. ErrorLogType LogType `protobuf:"varint,1,opt,name=error_log_type,json=errorLogType,enum=v2ray.core.app.log.LogType" json:"error_log_type,omitempty"`
  65. ErrorLogLevel LogLevel `protobuf:"varint,2,opt,name=error_log_level,json=errorLogLevel,enum=v2ray.core.app.log.LogLevel" json:"error_log_level,omitempty"`
  66. ErrorLogPath string `protobuf:"bytes,3,opt,name=error_log_path,json=errorLogPath" json:"error_log_path,omitempty"`
  67. AccessLogType LogType `protobuf:"varint,4,opt,name=access_log_type,json=accessLogType,enum=v2ray.core.app.log.LogType" json:"access_log_type,omitempty"`
  68. AccessLogPath string `protobuf:"bytes,5,opt,name=access_log_path,json=accessLogPath" json:"access_log_path,omitempty"`
  69. }
  70. func (m *Config) Reset() { *m = Config{} }
  71. func (m *Config) String() string { return proto.CompactTextString(m) }
  72. func (*Config) ProtoMessage() {}
  73. func (*Config) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  74. func (m *Config) GetErrorLogType() LogType {
  75. if m != nil {
  76. return m.ErrorLogType
  77. }
  78. return LogType_None
  79. }
  80. func (m *Config) GetErrorLogLevel() LogLevel {
  81. if m != nil {
  82. return m.ErrorLogLevel
  83. }
  84. return LogLevel_Disabled
  85. }
  86. func (m *Config) GetErrorLogPath() string {
  87. if m != nil {
  88. return m.ErrorLogPath
  89. }
  90. return ""
  91. }
  92. func (m *Config) GetAccessLogType() LogType {
  93. if m != nil {
  94. return m.AccessLogType
  95. }
  96. return LogType_None
  97. }
  98. func (m *Config) GetAccessLogPath() string {
  99. if m != nil {
  100. return m.AccessLogPath
  101. }
  102. return ""
  103. }
  104. func init() {
  105. proto.RegisterType((*Config)(nil), "v2ray.core.app.log.Config")
  106. proto.RegisterEnum("v2ray.core.app.log.LogType", LogType_name, LogType_value)
  107. proto.RegisterEnum("v2ray.core.app.log.LogLevel", LogLevel_name, LogLevel_value)
  108. }
  109. func init() { proto.RegisterFile("v2ray.com/core/app/log/config.proto", fileDescriptor0) }
  110. var fileDescriptor0 = []byte{
  111. // 331 bytes of a gzipped FileDescriptorProto
  112. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x91, 0xcd, 0x4a, 0xfb, 0x40,
  113. 0x14, 0xc5, 0x9b, 0xa4, 0x9f, 0xf3, 0xef, 0xc7, 0x30, 0x8b, 0x3f, 0x05, 0x5d, 0x14, 0x15, 0x29,
  114. 0x5d, 0x24, 0x50, 0xf5, 0x01, 0x6a, 0x5a, 0x41, 0x28, 0x52, 0x8a, 0x28, 0xb8, 0x29, 0xd3, 0x78,
  115. 0x3b, 0x0d, 0x4c, 0x73, 0x87, 0x49, 0x2c, 0xe4, 0x7d, 0x5c, 0xf9, 0x94, 0x32, 0xa3, 0x31, 0x8a,
  116. 0x8a, 0xcb, 0x9b, 0x9c, 0xf3, 0x3b, 0xe7, 0x30, 0xe4, 0x78, 0x3f, 0xd6, 0x3c, 0xf7, 0x23, 0xdc,
  117. 0x05, 0x11, 0x6a, 0x08, 0xb8, 0x52, 0x81, 0x44, 0x11, 0x44, 0x98, 0x6c, 0x62, 0xe1, 0x2b, 0x8d,
  118. 0x19, 0x32, 0x56, 0x88, 0x34, 0xf8, 0x5c, 0x29, 0x5f, 0xa2, 0x38, 0x7a, 0x76, 0x49, 0x3d, 0xb4,
  119. 0x22, 0x36, 0x21, 0x5d, 0xd0, 0x1a, 0xf5, 0x4a, 0xa2, 0x58, 0x65, 0xb9, 0x82, 0xbe, 0x33, 0x70,
  120. 0x86, 0xdd, 0xf1, 0x81, 0xff, 0xdd, 0xe7, 0xcf, 0x51, 0xdc, 0xe6, 0x0a, 0x96, 0x6d, 0x6b, 0x79,
  121. 0xbf, 0xd8, 0x94, 0xf4, 0x4a, 0x84, 0x84, 0x3d, 0xc8, 0xbe, 0x6b, 0x19, 0x87, 0xbf, 0x30, 0xe6,
  122. 0x46, 0xb3, 0xec, 0x14, 0x10, 0x7b, 0xb2, 0x93, 0xcf, 0x45, 0x14, 0xcf, 0xb6, 0x7d, 0x6f, 0xe0,
  123. 0x0c, 0x5b, 0x65, 0xd6, 0x82, 0x67, 0x5b, 0x16, 0x92, 0x1e, 0x8f, 0x22, 0x48, 0xd3, 0xb2, 0x6f,
  124. 0xf5, 0xef, 0xbe, 0x9d, 0x37, 0x4f, 0x51, 0xf8, 0xf4, 0x0b, 0xc4, 0x66, 0xd5, 0x6c, 0x56, 0xa9,
  125. 0x33, 0x61, 0xa3, 0x0b, 0xd2, 0x28, 0x2c, 0x4d, 0x52, 0xbd, 0xc1, 0x04, 0x68, 0x85, 0xfd, 0x23,
  126. 0x8d, 0x10, 0x93, 0x14, 0x25, 0x50, 0xc7, 0x7c, 0xbe, 0x8a, 0x25, 0x50, 0x97, 0xb5, 0x48, 0x6d,
  127. 0xb6, 0x87, 0x24, 0xa3, 0xde, 0x68, 0x46, 0x9a, 0x1f, 0xab, 0xda, 0xa4, 0x39, 0x8d, 0x53, 0xbe,
  128. 0x96, 0xf0, 0x48, 0x2b, 0x56, 0x64, 0xd6, 0x50, 0xc7, 0x60, 0xee, 0xb9, 0x4e, 0xe2, 0x44, 0x50,
  129. 0xd7, 0x60, 0xae, 0x93, 0x0d, 0x52, 0xcf, 0x28, 0xa6, 0xb0, 0x7e, 0x12, 0xb4, 0x7a, 0x79, 0x4e,
  130. 0xfe, 0x47, 0xb8, 0xfb, 0x61, 0xd6, 0xc2, 0x79, 0xf0, 0x24, 0x8a, 0x17, 0x97, 0xdd, 0x8d, 0x97,
  131. 0x3c, 0xf7, 0x43, 0xf3, 0x6f, 0xa2, 0x94, 0x99, 0xbb, 0xae, 0xdb, 0x57, 0x3f, 0x7b, 0x0d, 0x00,
  132. 0x00, 0xff, 0xff, 0x93, 0x6e, 0xe5, 0xbd, 0x1c, 0x02, 0x00, 0x00,
  133. }