github.com/eagleql/xray-core@v1.4.4/app/reverse/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/reverse/config.proto
     6  
     7  package reverse
     8  
     9  import (
    10  	proto "github.com/golang/protobuf/proto"
    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  // This is a compile-time assertion that a sufficiently up-to-date version
    25  // of the legacy proto package is being used.
    26  const _ = proto.ProtoPackageIsVersion4
    27  
    28  type Control_State int32
    29  
    30  const (
    31  	Control_ACTIVE Control_State = 0
    32  	Control_DRAIN  Control_State = 1
    33  )
    34  
    35  // Enum value maps for Control_State.
    36  var (
    37  	Control_State_name = map[int32]string{
    38  		0: "ACTIVE",
    39  		1: "DRAIN",
    40  	}
    41  	Control_State_value = map[string]int32{
    42  		"ACTIVE": 0,
    43  		"DRAIN":  1,
    44  	}
    45  )
    46  
    47  func (x Control_State) Enum() *Control_State {
    48  	p := new(Control_State)
    49  	*p = x
    50  	return p
    51  }
    52  
    53  func (x Control_State) String() string {
    54  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    55  }
    56  
    57  func (Control_State) Descriptor() protoreflect.EnumDescriptor {
    58  	return file_app_reverse_config_proto_enumTypes[0].Descriptor()
    59  }
    60  
    61  func (Control_State) Type() protoreflect.EnumType {
    62  	return &file_app_reverse_config_proto_enumTypes[0]
    63  }
    64  
    65  func (x Control_State) Number() protoreflect.EnumNumber {
    66  	return protoreflect.EnumNumber(x)
    67  }
    68  
    69  // Deprecated: Use Control_State.Descriptor instead.
    70  func (Control_State) EnumDescriptor() ([]byte, []int) {
    71  	return file_app_reverse_config_proto_rawDescGZIP(), []int{0, 0}
    72  }
    73  
    74  type Control struct {
    75  	state         protoimpl.MessageState
    76  	sizeCache     protoimpl.SizeCache
    77  	unknownFields protoimpl.UnknownFields
    78  
    79  	State  Control_State `protobuf:"varint,1,opt,name=state,proto3,enum=xray.app.reverse.Control_State" json:"state,omitempty"`
    80  	Random []byte        `protobuf:"bytes,99,opt,name=random,proto3" json:"random,omitempty"`
    81  }
    82  
    83  func (x *Control) Reset() {
    84  	*x = Control{}
    85  	if protoimpl.UnsafeEnabled {
    86  		mi := &file_app_reverse_config_proto_msgTypes[0]
    87  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    88  		ms.StoreMessageInfo(mi)
    89  	}
    90  }
    91  
    92  func (x *Control) String() string {
    93  	return protoimpl.X.MessageStringOf(x)
    94  }
    95  
    96  func (*Control) ProtoMessage() {}
    97  
    98  func (x *Control) ProtoReflect() protoreflect.Message {
    99  	mi := &file_app_reverse_config_proto_msgTypes[0]
   100  	if protoimpl.UnsafeEnabled && x != nil {
   101  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   102  		if ms.LoadMessageInfo() == nil {
   103  			ms.StoreMessageInfo(mi)
   104  		}
   105  		return ms
   106  	}
   107  	return mi.MessageOf(x)
   108  }
   109  
   110  // Deprecated: Use Control.ProtoReflect.Descriptor instead.
   111  func (*Control) Descriptor() ([]byte, []int) {
   112  	return file_app_reverse_config_proto_rawDescGZIP(), []int{0}
   113  }
   114  
   115  func (x *Control) GetState() Control_State {
   116  	if x != nil {
   117  		return x.State
   118  	}
   119  	return Control_ACTIVE
   120  }
   121  
   122  func (x *Control) GetRandom() []byte {
   123  	if x != nil {
   124  		return x.Random
   125  	}
   126  	return nil
   127  }
   128  
   129  type BridgeConfig struct {
   130  	state         protoimpl.MessageState
   131  	sizeCache     protoimpl.SizeCache
   132  	unknownFields protoimpl.UnknownFields
   133  
   134  	Tag    string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
   135  	Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
   136  }
   137  
   138  func (x *BridgeConfig) Reset() {
   139  	*x = BridgeConfig{}
   140  	if protoimpl.UnsafeEnabled {
   141  		mi := &file_app_reverse_config_proto_msgTypes[1]
   142  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   143  		ms.StoreMessageInfo(mi)
   144  	}
   145  }
   146  
   147  func (x *BridgeConfig) String() string {
   148  	return protoimpl.X.MessageStringOf(x)
   149  }
   150  
   151  func (*BridgeConfig) ProtoMessage() {}
   152  
   153  func (x *BridgeConfig) ProtoReflect() protoreflect.Message {
   154  	mi := &file_app_reverse_config_proto_msgTypes[1]
   155  	if protoimpl.UnsafeEnabled && x != nil {
   156  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   157  		if ms.LoadMessageInfo() == nil {
   158  			ms.StoreMessageInfo(mi)
   159  		}
   160  		return ms
   161  	}
   162  	return mi.MessageOf(x)
   163  }
   164  
   165  // Deprecated: Use BridgeConfig.ProtoReflect.Descriptor instead.
   166  func (*BridgeConfig) Descriptor() ([]byte, []int) {
   167  	return file_app_reverse_config_proto_rawDescGZIP(), []int{1}
   168  }
   169  
   170  func (x *BridgeConfig) GetTag() string {
   171  	if x != nil {
   172  		return x.Tag
   173  	}
   174  	return ""
   175  }
   176  
   177  func (x *BridgeConfig) GetDomain() string {
   178  	if x != nil {
   179  		return x.Domain
   180  	}
   181  	return ""
   182  }
   183  
   184  type PortalConfig struct {
   185  	state         protoimpl.MessageState
   186  	sizeCache     protoimpl.SizeCache
   187  	unknownFields protoimpl.UnknownFields
   188  
   189  	Tag    string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
   190  	Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
   191  }
   192  
   193  func (x *PortalConfig) Reset() {
   194  	*x = PortalConfig{}
   195  	if protoimpl.UnsafeEnabled {
   196  		mi := &file_app_reverse_config_proto_msgTypes[2]
   197  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   198  		ms.StoreMessageInfo(mi)
   199  	}
   200  }
   201  
   202  func (x *PortalConfig) String() string {
   203  	return protoimpl.X.MessageStringOf(x)
   204  }
   205  
   206  func (*PortalConfig) ProtoMessage() {}
   207  
   208  func (x *PortalConfig) ProtoReflect() protoreflect.Message {
   209  	mi := &file_app_reverse_config_proto_msgTypes[2]
   210  	if protoimpl.UnsafeEnabled && x != nil {
   211  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   212  		if ms.LoadMessageInfo() == nil {
   213  			ms.StoreMessageInfo(mi)
   214  		}
   215  		return ms
   216  	}
   217  	return mi.MessageOf(x)
   218  }
   219  
   220  // Deprecated: Use PortalConfig.ProtoReflect.Descriptor instead.
   221  func (*PortalConfig) Descriptor() ([]byte, []int) {
   222  	return file_app_reverse_config_proto_rawDescGZIP(), []int{2}
   223  }
   224  
   225  func (x *PortalConfig) GetTag() string {
   226  	if x != nil {
   227  		return x.Tag
   228  	}
   229  	return ""
   230  }
   231  
   232  func (x *PortalConfig) GetDomain() string {
   233  	if x != nil {
   234  		return x.Domain
   235  	}
   236  	return ""
   237  }
   238  
   239  type Config struct {
   240  	state         protoimpl.MessageState
   241  	sizeCache     protoimpl.SizeCache
   242  	unknownFields protoimpl.UnknownFields
   243  
   244  	BridgeConfig []*BridgeConfig `protobuf:"bytes,1,rep,name=bridge_config,json=bridgeConfig,proto3" json:"bridge_config,omitempty"`
   245  	PortalConfig []*PortalConfig `protobuf:"bytes,2,rep,name=portal_config,json=portalConfig,proto3" json:"portal_config,omitempty"`
   246  }
   247  
   248  func (x *Config) Reset() {
   249  	*x = Config{}
   250  	if protoimpl.UnsafeEnabled {
   251  		mi := &file_app_reverse_config_proto_msgTypes[3]
   252  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   253  		ms.StoreMessageInfo(mi)
   254  	}
   255  }
   256  
   257  func (x *Config) String() string {
   258  	return protoimpl.X.MessageStringOf(x)
   259  }
   260  
   261  func (*Config) ProtoMessage() {}
   262  
   263  func (x *Config) ProtoReflect() protoreflect.Message {
   264  	mi := &file_app_reverse_config_proto_msgTypes[3]
   265  	if protoimpl.UnsafeEnabled && x != nil {
   266  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   267  		if ms.LoadMessageInfo() == nil {
   268  			ms.StoreMessageInfo(mi)
   269  		}
   270  		return ms
   271  	}
   272  	return mi.MessageOf(x)
   273  }
   274  
   275  // Deprecated: Use Config.ProtoReflect.Descriptor instead.
   276  func (*Config) Descriptor() ([]byte, []int) {
   277  	return file_app_reverse_config_proto_rawDescGZIP(), []int{3}
   278  }
   279  
   280  func (x *Config) GetBridgeConfig() []*BridgeConfig {
   281  	if x != nil {
   282  		return x.BridgeConfig
   283  	}
   284  	return nil
   285  }
   286  
   287  func (x *Config) GetPortalConfig() []*PortalConfig {
   288  	if x != nil {
   289  		return x.PortalConfig
   290  	}
   291  	return nil
   292  }
   293  
   294  var File_app_reverse_config_proto protoreflect.FileDescriptor
   295  
   296  var file_app_reverse_config_proto_rawDesc = []byte{
   297  	0x0a, 0x18, 0x61, 0x70, 0x70, 0x2f, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x2f, 0x63, 0x6f,
   298  	0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x78, 0x72, 0x61, 0x79,
   299  	0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x22, 0x78, 0x0a, 0x07,
   300  	0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x12, 0x35, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65,
   301  	0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70,
   302  	0x70, 0x2e, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f,
   303  	0x6c, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x16,
   304  	0x0a, 0x06, 0x72, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x18, 0x63, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06,
   305  	0x72, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x22, 0x1e, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12,
   306  	0x0a, 0x0a, 0x06, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x44,
   307  	0x52, 0x41, 0x49, 0x4e, 0x10, 0x01, 0x22, 0x38, 0x0a, 0x0c, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65,
   308  	0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20,
   309  	0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61,
   310  	0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
   311  	0x22, 0x38, 0x0a, 0x0c, 0x50, 0x6f, 0x72, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
   312  	0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74,
   313  	0x61, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01,
   314  	0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0x92, 0x01, 0x0a, 0x06, 0x43,
   315  	0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x43, 0x0a, 0x0d, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x5f,
   316  	0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x78,
   317  	0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x2e,
   318  	0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0c, 0x62, 0x72,
   319  	0x69, 0x64, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x43, 0x0a, 0x0d, 0x70, 0x6f,
   320  	0x72, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x03, 0x28,
   321  	0x0b, 0x32, 0x1e, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x65, 0x76,
   322  	0x65, 0x72, 0x73, 0x65, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69,
   323  	0x67, 0x52, 0x0c, 0x70, 0x6f, 0x72, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42,
   324  	0x56, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78,
   325  	0x79, 0x2e, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x50, 0x01, 0x5a, 0x25, 0x67, 0x69, 0x74,
   326  	0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61,
   327  	0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x72, 0x65, 0x76, 0x65, 0x72,
   328  	0x73, 0x65, 0xaa, 0x02, 0x12, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e,
   329  	0x52, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   330  }
   331  
   332  var (
   333  	file_app_reverse_config_proto_rawDescOnce sync.Once
   334  	file_app_reverse_config_proto_rawDescData = file_app_reverse_config_proto_rawDesc
   335  )
   336  
   337  func file_app_reverse_config_proto_rawDescGZIP() []byte {
   338  	file_app_reverse_config_proto_rawDescOnce.Do(func() {
   339  		file_app_reverse_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_reverse_config_proto_rawDescData)
   340  	})
   341  	return file_app_reverse_config_proto_rawDescData
   342  }
   343  
   344  var file_app_reverse_config_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   345  var file_app_reverse_config_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
   346  var file_app_reverse_config_proto_goTypes = []interface{}{
   347  	(Control_State)(0),   // 0: xray.app.reverse.Control.State
   348  	(*Control)(nil),      // 1: xray.app.reverse.Control
   349  	(*BridgeConfig)(nil), // 2: xray.app.reverse.BridgeConfig
   350  	(*PortalConfig)(nil), // 3: xray.app.reverse.PortalConfig
   351  	(*Config)(nil),       // 4: xray.app.reverse.Config
   352  }
   353  var file_app_reverse_config_proto_depIdxs = []int32{
   354  	0, // 0: xray.app.reverse.Control.state:type_name -> xray.app.reverse.Control.State
   355  	2, // 1: xray.app.reverse.Config.bridge_config:type_name -> xray.app.reverse.BridgeConfig
   356  	3, // 2: xray.app.reverse.Config.portal_config:type_name -> xray.app.reverse.PortalConfig
   357  	3, // [3:3] is the sub-list for method output_type
   358  	3, // [3:3] is the sub-list for method input_type
   359  	3, // [3:3] is the sub-list for extension type_name
   360  	3, // [3:3] is the sub-list for extension extendee
   361  	0, // [0:3] is the sub-list for field type_name
   362  }
   363  
   364  func init() { file_app_reverse_config_proto_init() }
   365  func file_app_reverse_config_proto_init() {
   366  	if File_app_reverse_config_proto != nil {
   367  		return
   368  	}
   369  	if !protoimpl.UnsafeEnabled {
   370  		file_app_reverse_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   371  			switch v := v.(*Control); i {
   372  			case 0:
   373  				return &v.state
   374  			case 1:
   375  				return &v.sizeCache
   376  			case 2:
   377  				return &v.unknownFields
   378  			default:
   379  				return nil
   380  			}
   381  		}
   382  		file_app_reverse_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   383  			switch v := v.(*BridgeConfig); i {
   384  			case 0:
   385  				return &v.state
   386  			case 1:
   387  				return &v.sizeCache
   388  			case 2:
   389  				return &v.unknownFields
   390  			default:
   391  				return nil
   392  			}
   393  		}
   394  		file_app_reverse_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   395  			switch v := v.(*PortalConfig); i {
   396  			case 0:
   397  				return &v.state
   398  			case 1:
   399  				return &v.sizeCache
   400  			case 2:
   401  				return &v.unknownFields
   402  			default:
   403  				return nil
   404  			}
   405  		}
   406  		file_app_reverse_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
   407  			switch v := v.(*Config); i {
   408  			case 0:
   409  				return &v.state
   410  			case 1:
   411  				return &v.sizeCache
   412  			case 2:
   413  				return &v.unknownFields
   414  			default:
   415  				return nil
   416  			}
   417  		}
   418  	}
   419  	type x struct{}
   420  	out := protoimpl.TypeBuilder{
   421  		File: protoimpl.DescBuilder{
   422  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   423  			RawDescriptor: file_app_reverse_config_proto_rawDesc,
   424  			NumEnums:      1,
   425  			NumMessages:   4,
   426  			NumExtensions: 0,
   427  			NumServices:   0,
   428  		},
   429  		GoTypes:           file_app_reverse_config_proto_goTypes,
   430  		DependencyIndexes: file_app_reverse_config_proto_depIdxs,
   431  		EnumInfos:         file_app_reverse_config_proto_enumTypes,
   432  		MessageInfos:      file_app_reverse_config_proto_msgTypes,
   433  	}.Build()
   434  	File_app_reverse_config_proto = out.File
   435  	file_app_reverse_config_proto_rawDesc = nil
   436  	file_app_reverse_config_proto_goTypes = nil
   437  	file_app_reverse_config_proto_depIdxs = nil
   438  }