github.com/moqsien/xraycore@v1.8.5/app/log/config.pb.go (about)

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