github.com/EagleQL/Xray-core@v1.4.3/app/log/config.pb.go (about)

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