config.pb.go 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.25.0
  4. // protoc v3.14.0
  5. // source: app/log/config.proto
  6. package log
  7. import (
  8. proto "github.com/golang/protobuf/proto"
  9. log "github.com/xtls/xray-core/v1/common/log"
  10. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  11. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  12. reflect "reflect"
  13. sync "sync"
  14. )
  15. const (
  16. // Verify that this generated code is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  18. // Verify that runtime/protoimpl is sufficiently up-to-date.
  19. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  20. )
  21. // This is a compile-time assertion that a sufficiently up-to-date version
  22. // of the legacy proto package is being used.
  23. const _ = proto.ProtoPackageIsVersion4
  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. // Enum value maps for LogType.
  32. var (
  33. LogType_name = map[int32]string{
  34. 0: "None",
  35. 1: "Console",
  36. 2: "File",
  37. 3: "Event",
  38. }
  39. LogType_value = map[string]int32{
  40. "None": 0,
  41. "Console": 1,
  42. "File": 2,
  43. "Event": 3,
  44. }
  45. )
  46. func (x LogType) Enum() *LogType {
  47. p := new(LogType)
  48. *p = x
  49. return p
  50. }
  51. func (x LogType) String() string {
  52. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  53. }
  54. func (LogType) Descriptor() protoreflect.EnumDescriptor {
  55. return file_app_log_config_proto_enumTypes[0].Descriptor()
  56. }
  57. func (LogType) Type() protoreflect.EnumType {
  58. return &file_app_log_config_proto_enumTypes[0]
  59. }
  60. func (x LogType) Number() protoreflect.EnumNumber {
  61. return protoreflect.EnumNumber(x)
  62. }
  63. // Deprecated: Use LogType.Descriptor instead.
  64. func (LogType) EnumDescriptor() ([]byte, []int) {
  65. return file_app_log_config_proto_rawDescGZIP(), []int{0}
  66. }
  67. type Config struct {
  68. state protoimpl.MessageState
  69. sizeCache protoimpl.SizeCache
  70. unknownFields protoimpl.UnknownFields
  71. ErrorLogType LogType `protobuf:"varint,1,opt,name=error_log_type,json=errorLogType,proto3,enum=xray.app.log.LogType" json:"error_log_type,omitempty"`
  72. ErrorLogLevel log.Severity `protobuf:"varint,2,opt,name=error_log_level,json=errorLogLevel,proto3,enum=xray.common.log.Severity" json:"error_log_level,omitempty"`
  73. ErrorLogPath string `protobuf:"bytes,3,opt,name=error_log_path,json=errorLogPath,proto3" json:"error_log_path,omitempty"`
  74. AccessLogType LogType `protobuf:"varint,4,opt,name=access_log_type,json=accessLogType,proto3,enum=xray.app.log.LogType" json:"access_log_type,omitempty"`
  75. AccessLogPath string `protobuf:"bytes,5,opt,name=access_log_path,json=accessLogPath,proto3" json:"access_log_path,omitempty"`
  76. }
  77. func (x *Config) Reset() {
  78. *x = Config{}
  79. if protoimpl.UnsafeEnabled {
  80. mi := &file_app_log_config_proto_msgTypes[0]
  81. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  82. ms.StoreMessageInfo(mi)
  83. }
  84. }
  85. func (x *Config) String() string {
  86. return protoimpl.X.MessageStringOf(x)
  87. }
  88. func (*Config) ProtoMessage() {}
  89. func (x *Config) ProtoReflect() protoreflect.Message {
  90. mi := &file_app_log_config_proto_msgTypes[0]
  91. if protoimpl.UnsafeEnabled && x != nil {
  92. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  93. if ms.LoadMessageInfo() == nil {
  94. ms.StoreMessageInfo(mi)
  95. }
  96. return ms
  97. }
  98. return mi.MessageOf(x)
  99. }
  100. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  101. func (*Config) Descriptor() ([]byte, []int) {
  102. return file_app_log_config_proto_rawDescGZIP(), []int{0}
  103. }
  104. func (x *Config) GetErrorLogType() LogType {
  105. if x != nil {
  106. return x.ErrorLogType
  107. }
  108. return LogType_None
  109. }
  110. func (x *Config) GetErrorLogLevel() log.Severity {
  111. if x != nil {
  112. return x.ErrorLogLevel
  113. }
  114. return log.Severity_Unknown
  115. }
  116. func (x *Config) GetErrorLogPath() string {
  117. if x != nil {
  118. return x.ErrorLogPath
  119. }
  120. return ""
  121. }
  122. func (x *Config) GetAccessLogType() LogType {
  123. if x != nil {
  124. return x.AccessLogType
  125. }
  126. return LogType_None
  127. }
  128. func (x *Config) GetAccessLogPath() string {
  129. if x != nil {
  130. return x.AccessLogPath
  131. }
  132. return ""
  133. }
  134. var File_app_log_config_proto protoreflect.FileDescriptor
  135. var file_app_log_config_proto_rawDesc = []byte{
  136. 0x0a, 0x14, 0x61, 0x70, 0x70, 0x2f, 0x6c, 0x6f, 0x67, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
  137. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70,
  138. 0x2e, 0x6c, 0x6f, 0x67, 0x1a, 0x14, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6c, 0x6f, 0x67,
  139. 0x2f, 0x6c, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x95, 0x02, 0x0a, 0x06, 0x43,
  140. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3b, 0x0a, 0x0e, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6c,
  141. 0x6f, 0x67, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e,
  142. 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x6c, 0x6f, 0x67, 0x2e, 0x4c, 0x6f, 0x67,
  143. 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4c, 0x6f, 0x67, 0x54, 0x79,
  144. 0x70, 0x65, 0x12, 0x41, 0x0a, 0x0f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6c, 0x6f, 0x67, 0x5f,
  145. 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x78, 0x72,
  146. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6c, 0x6f, 0x67, 0x2e, 0x53, 0x65,
  147. 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x52, 0x0d, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4c, 0x6f, 0x67,
  148. 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x24, 0x0a, 0x0e, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6c,
  149. 0x6f, 0x67, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x65,
  150. 0x72, 0x72, 0x6f, 0x72, 0x4c, 0x6f, 0x67, 0x50, 0x61, 0x74, 0x68, 0x12, 0x3d, 0x0a, 0x0f, 0x61,
  151. 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6c, 0x6f, 0x67, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04,
  152. 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e,
  153. 0x6c, 0x6f, 0x67, 0x2e, 0x4c, 0x6f, 0x67, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0d, 0x61, 0x63, 0x63,
  154. 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x61, 0x63,
  155. 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6c, 0x6f, 0x67, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x05, 0x20,
  156. 0x01, 0x28, 0x09, 0x52, 0x0d, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50, 0x61,
  157. 0x74, 0x68, 0x2a, 0x35, 0x0a, 0x07, 0x4c, 0x6f, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x08, 0x0a,
  158. 0x04, 0x4e, 0x6f, 0x6e, 0x65, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x6f, 0x6e, 0x73, 0x6f,
  159. 0x6c, 0x65, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x46, 0x69, 0x6c, 0x65, 0x10, 0x02, 0x12, 0x09,
  160. 0x0a, 0x05, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x10, 0x03, 0x42, 0x49, 0x0a, 0x10, 0x63, 0x6f, 0x6d,
  161. 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x6c, 0x6f, 0x67, 0x50, 0x01, 0x5a,
  162. 0x24, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73,
  163. 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x70,
  164. 0x70, 0x2f, 0x6c, 0x6f, 0x67, 0xaa, 0x02, 0x0c, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x41, 0x70, 0x70,
  165. 0x2e, 0x4c, 0x6f, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  166. }
  167. var (
  168. file_app_log_config_proto_rawDescOnce sync.Once
  169. file_app_log_config_proto_rawDescData = file_app_log_config_proto_rawDesc
  170. )
  171. func file_app_log_config_proto_rawDescGZIP() []byte {
  172. file_app_log_config_proto_rawDescOnce.Do(func() {
  173. file_app_log_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_log_config_proto_rawDescData)
  174. })
  175. return file_app_log_config_proto_rawDescData
  176. }
  177. var file_app_log_config_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  178. var file_app_log_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  179. var file_app_log_config_proto_goTypes = []interface{}{
  180. (LogType)(0), // 0: xray.app.log.LogType
  181. (*Config)(nil), // 1: xray.app.log.Config
  182. (log.Severity)(0), // 2: xray.common.log.Severity
  183. }
  184. var file_app_log_config_proto_depIdxs = []int32{
  185. 0, // 0: xray.app.log.Config.error_log_type:type_name -> xray.app.log.LogType
  186. 2, // 1: xray.app.log.Config.error_log_level:type_name -> xray.common.log.Severity
  187. 0, // 2: xray.app.log.Config.access_log_type:type_name -> xray.app.log.LogType
  188. 3, // [3:3] is the sub-list for method output_type
  189. 3, // [3:3] is the sub-list for method input_type
  190. 3, // [3:3] is the sub-list for extension type_name
  191. 3, // [3:3] is the sub-list for extension extendee
  192. 0, // [0:3] is the sub-list for field type_name
  193. }
  194. func init() { file_app_log_config_proto_init() }
  195. func file_app_log_config_proto_init() {
  196. if File_app_log_config_proto != nil {
  197. return
  198. }
  199. if !protoimpl.UnsafeEnabled {
  200. file_app_log_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  201. switch v := v.(*Config); i {
  202. case 0:
  203. return &v.state
  204. case 1:
  205. return &v.sizeCache
  206. case 2:
  207. return &v.unknownFields
  208. default:
  209. return nil
  210. }
  211. }
  212. }
  213. type x struct{}
  214. out := protoimpl.TypeBuilder{
  215. File: protoimpl.DescBuilder{
  216. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  217. RawDescriptor: file_app_log_config_proto_rawDesc,
  218. NumEnums: 1,
  219. NumMessages: 1,
  220. NumExtensions: 0,
  221. NumServices: 0,
  222. },
  223. GoTypes: file_app_log_config_proto_goTypes,
  224. DependencyIndexes: file_app_log_config_proto_depIdxs,
  225. EnumInfos: file_app_log_config_proto_enumTypes,
  226. MessageInfos: file_app_log_config_proto_msgTypes,
  227. }.Build()
  228. File_app_log_config_proto = out.File
  229. file_app_log_config_proto_rawDesc = nil
  230. file_app_log_config_proto_goTypes = nil
  231. file_app_log_config_proto_depIdxs = nil
  232. }