config.pb.go 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. package log
  2. import proto "github.com/golang/protobuf/proto"
  3. import fmt "fmt"
  4. import math "math"
  5. import log "v2ray.com/core/common/log"
  6. // Reference imports to suppress errors if they are not otherwise used.
  7. var _ = proto.Marshal
  8. var _ = fmt.Errorf
  9. var _ = math.Inf
  10. // This is a compile-time assertion to ensure that this generated file
  11. // is compatible with the proto package it is being compiled against.
  12. // A compilation error at this line likely means your copy of the
  13. // proto package needs to be updated.
  14. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  15. type LogType int32
  16. const (
  17. LogType_None LogType = 0
  18. LogType_Console LogType = 1
  19. LogType_File LogType = 2
  20. LogType_Event LogType = 3
  21. )
  22. var LogType_name = map[int32]string{
  23. 0: "None",
  24. 1: "Console",
  25. 2: "File",
  26. 3: "Event",
  27. }
  28. var LogType_value = map[string]int32{
  29. "None": 0,
  30. "Console": 1,
  31. "File": 2,
  32. "Event": 3,
  33. }
  34. func (x LogType) String() string {
  35. return proto.EnumName(LogType_name, int32(x))
  36. }
  37. func (LogType) EnumDescriptor() ([]byte, []int) {
  38. return fileDescriptor_config_2fe3970bf77f5f95, []int{0}
  39. }
  40. type Config struct {
  41. ErrorLogType LogType `protobuf:"varint,1,opt,name=error_log_type,json=errorLogType,proto3,enum=v2ray.core.app.log.LogType" json:"error_log_type,omitempty"`
  42. ErrorLogLevel log.Severity `protobuf:"varint,2,opt,name=error_log_level,json=errorLogLevel,proto3,enum=v2ray.core.common.log.Severity" json:"error_log_level,omitempty"`
  43. ErrorLogPath string `protobuf:"bytes,3,opt,name=error_log_path,json=errorLogPath,proto3" json:"error_log_path,omitempty"`
  44. AccessLogType LogType `protobuf:"varint,4,opt,name=access_log_type,json=accessLogType,proto3,enum=v2ray.core.app.log.LogType" json:"access_log_type,omitempty"`
  45. AccessLogPath string `protobuf:"bytes,5,opt,name=access_log_path,json=accessLogPath,proto3" json:"access_log_path,omitempty"`
  46. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  47. XXX_unrecognized []byte `json:"-"`
  48. XXX_sizecache int32 `json:"-"`
  49. }
  50. func (m *Config) Reset() { *m = Config{} }
  51. func (m *Config) String() string { return proto.CompactTextString(m) }
  52. func (*Config) ProtoMessage() {}
  53. func (*Config) Descriptor() ([]byte, []int) {
  54. return fileDescriptor_config_2fe3970bf77f5f95, []int{0}
  55. }
  56. func (m *Config) XXX_Unmarshal(b []byte) error {
  57. return xxx_messageInfo_Config.Unmarshal(m, b)
  58. }
  59. func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  60. return xxx_messageInfo_Config.Marshal(b, m, deterministic)
  61. }
  62. func (dst *Config) XXX_Merge(src proto.Message) {
  63. xxx_messageInfo_Config.Merge(dst, src)
  64. }
  65. func (m *Config) XXX_Size() int {
  66. return xxx_messageInfo_Config.Size(m)
  67. }
  68. func (m *Config) XXX_DiscardUnknown() {
  69. xxx_messageInfo_Config.DiscardUnknown(m)
  70. }
  71. var xxx_messageInfo_Config proto.InternalMessageInfo
  72. func (m *Config) GetErrorLogType() LogType {
  73. if m != nil {
  74. return m.ErrorLogType
  75. }
  76. return LogType_None
  77. }
  78. func (m *Config) GetErrorLogLevel() log.Severity {
  79. if m != nil {
  80. return m.ErrorLogLevel
  81. }
  82. return log.Severity_Unknown
  83. }
  84. func (m *Config) GetErrorLogPath() string {
  85. if m != nil {
  86. return m.ErrorLogPath
  87. }
  88. return ""
  89. }
  90. func (m *Config) GetAccessLogType() LogType {
  91. if m != nil {
  92. return m.AccessLogType
  93. }
  94. return LogType_None
  95. }
  96. func (m *Config) GetAccessLogPath() string {
  97. if m != nil {
  98. return m.AccessLogPath
  99. }
  100. return ""
  101. }
  102. func init() {
  103. proto.RegisterType((*Config)(nil), "v2ray.core.app.log.Config")
  104. proto.RegisterEnum("v2ray.core.app.log.LogType", LogType_name, LogType_value)
  105. }
  106. func init() {
  107. proto.RegisterFile("v2ray.com/core/app/log/config.proto", fileDescriptor_config_2fe3970bf77f5f95)
  108. }
  109. var fileDescriptor_config_2fe3970bf77f5f95 = []byte{
  110. // 306 bytes of a gzipped FileDescriptorProto
  111. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x91, 0xcd, 0x4a, 0xfb, 0x40,
  112. 0x14, 0x47, 0xff, 0x49, 0xbf, 0xfe, 0x1d, 0x6d, 0x1b, 0x66, 0x21, 0x45, 0x17, 0x16, 0x15, 0x29,
  113. 0x2e, 0x26, 0x50, 0xf5, 0x01, 0x6a, 0x50, 0x37, 0x45, 0x4a, 0x14, 0x17, 0x6e, 0xca, 0x38, 0x5c,
  114. 0xa7, 0x81, 0x49, 0xee, 0x30, 0x19, 0x02, 0x79, 0x22, 0xc1, 0xa7, 0x94, 0x4c, 0x1b, 0x52, 0x3f,
  115. 0xc0, 0x65, 0x92, 0x7b, 0xce, 0xef, 0x40, 0xc8, 0x69, 0x31, 0x33, 0xbc, 0x64, 0x02, 0xd3, 0x50,
  116. 0xa0, 0x81, 0x90, 0x6b, 0x1d, 0x2a, 0x94, 0xa1, 0xc0, 0xec, 0x2d, 0x91, 0x4c, 0x1b, 0xb4, 0x48,
  117. 0x69, 0x7d, 0x64, 0x80, 0x71, 0xad, 0x99, 0x42, 0x79, 0xf8, 0x1d, 0x14, 0x98, 0xa6, 0x98, 0x39,
  118. 0x56, 0xe1, 0x16, 0x3c, 0x79, 0xf7, 0x49, 0x37, 0x72, 0x26, 0x3a, 0x27, 0x43, 0x30, 0x06, 0xcd,
  119. 0x4a, 0xa1, 0x5c, 0xd9, 0x52, 0xc3, 0xd8, 0x9b, 0x78, 0xd3, 0xe1, 0xec, 0x88, 0xfd, 0x94, 0xb3,
  120. 0x05, 0xca, 0xa7, 0x52, 0x43, 0xbc, 0xef, 0x90, 0xed, 0x13, 0xbd, 0x27, 0xa3, 0x46, 0xa1, 0xa0,
  121. 0x00, 0x35, 0xf6, 0x9d, 0xe3, 0x78, 0xd7, 0xb1, 0x09, 0x71, 0x9a, 0x47, 0x28, 0xc0, 0x24, 0xb6,
  122. 0x8c, 0x07, 0xb5, 0x67, 0x51, 0x51, 0xf4, 0x6c, 0xb7, 0x45, 0x73, 0xbb, 0x1e, 0xb7, 0x26, 0xde,
  123. 0xb4, 0xdf, 0xcc, 0x2d, 0xb9, 0x5d, 0xd3, 0x88, 0x8c, 0xb8, 0x10, 0x90, 0xe7, 0x4d, 0x72, 0xfb,
  124. 0xef, 0xe4, 0xc1, 0x86, 0xa9, 0x9b, 0xcf, 0xbf, 0x48, 0xdc, 0x56, 0xc7, 0x6d, 0x35, 0x77, 0xd5,
  125. 0xd8, 0xc5, 0x35, 0xe9, 0xd5, 0xc8, 0x7f, 0xd2, 0x7e, 0xc0, 0x0c, 0x82, 0x7f, 0x74, 0x8f, 0xf4,
  126. 0x22, 0xcc, 0x72, 0x54, 0x10, 0x78, 0xd5, 0xeb, 0xbb, 0x44, 0x41, 0xe0, 0xd3, 0x3e, 0xe9, 0xdc,
  127. 0x16, 0x90, 0xd9, 0xa0, 0x75, 0x73, 0x45, 0x0e, 0x04, 0xa6, 0xbf, 0xf4, 0x2c, 0xbd, 0x97, 0x96,
  128. 0x42, 0xf9, 0xe1, 0xd3, 0xe7, 0x59, 0xcc, 0x4b, 0x16, 0x55, 0xdf, 0xe6, 0x5a, 0x57, 0x9d, 0xaf,
  129. 0x5d, 0xf7, 0x77, 0x2e, 0x3f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x33, 0xd5, 0x99, 0x3f, 0xfd, 0x01,
  130. 0x00, 0x00,
  131. }