浏览代码

update proto for mux

Darien Raymond 8 年之前
父节点
当前提交
b07d947311
共有 2 个文件被更改,包括 141 次插入51 次删除
  1. 126 51
      app/proxyman/config.pb.go
  2. 15 0
      app/proxyman/config.proto

+ 126 - 51
app/proxyman/config.pb.go

@@ -5,7 +5,8 @@ import fmt "fmt"
 import math "math"
 import v2ray_core_common_serial "v2ray.com/core/common/serial"
 import v2ray_core_common_net "v2ray.com/core/common/net"
-import v2ray_core_common_net1 "v2ray.com/core/common/net"
+import v2ray_core_common_net2 "v2ray.com/core/common/net"
+import v2ray_core_common_net3 "v2ray.com/core/common/net"
 import v2ray_core_transport_internet "v2ray.com/core/transport/internet"
 
 // Reference imports to suppress errors if they are not otherwise used.
@@ -135,7 +136,7 @@ func (m *AllocationStrategy_AllocationStrategyRefresh) GetValue() uint32 {
 }
 
 type ReceiverConfig struct {
-	PortRange                  *v2ray_core_common_net1.PortRange           `protobuf:"bytes,1,opt,name=port_range,json=portRange" json:"port_range,omitempty"`
+	PortRange                  *v2ray_core_common_net3.PortRange           `protobuf:"bytes,1,opt,name=port_range,json=portRange" json:"port_range,omitempty"`
 	Listen                     *v2ray_core_common_net.IPOrDomain           `protobuf:"bytes,2,opt,name=listen" json:"listen,omitempty"`
 	AllocationStrategy         *AllocationStrategy                         `protobuf:"bytes,3,opt,name=allocation_strategy,json=allocationStrategy" json:"allocation_strategy,omitempty"`
 	StreamSettings             *v2ray_core_transport_internet.StreamConfig `protobuf:"bytes,4,opt,name=stream_settings,json=streamSettings" json:"stream_settings,omitempty"`
@@ -148,7 +149,7 @@ func (m *ReceiverConfig) String() string            { return proto.CompactTextSt
 func (*ReceiverConfig) ProtoMessage()               {}
 func (*ReceiverConfig) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
 
-func (m *ReceiverConfig) GetPortRange() *v2ray_core_common_net1.PortRange {
+func (m *ReceiverConfig) GetPortRange() *v2ray_core_common_net3.PortRange {
 	if m != nil {
 		return m.PortRange
 	}
@@ -311,6 +312,70 @@ func (m *OutboundHandlerConfig) GetComment() string {
 	return ""
 }
 
+type MultiplexingConfig struct {
+	Enabled bool `protobuf:"varint,1,opt,name=enabled" json:"enabled,omitempty"`
+}
+
+func (m *MultiplexingConfig) Reset()                    { *m = MultiplexingConfig{} }
+func (m *MultiplexingConfig) String() string            { return proto.CompactTextString(m) }
+func (*MultiplexingConfig) ProtoMessage()               {}
+func (*MultiplexingConfig) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
+
+func (m *MultiplexingConfig) GetEnabled() bool {
+	if m != nil {
+		return m.Enabled
+	}
+	return false
+}
+
+type DispatchConfig struct {
+	MuxSettings *MultiplexingConfig `protobuf:"bytes,1,opt,name=mux_settings,json=muxSettings" json:"mux_settings,omitempty"`
+}
+
+func (m *DispatchConfig) Reset()                    { *m = DispatchConfig{} }
+func (m *DispatchConfig) String() string            { return proto.CompactTextString(m) }
+func (*DispatchConfig) ProtoMessage()               {}
+func (*DispatchConfig) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
+
+func (m *DispatchConfig) GetMuxSettings() *MultiplexingConfig {
+	if m != nil {
+		return m.MuxSettings
+	}
+	return nil
+}
+
+type SessionFrame struct {
+	Id      uint32                           `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
+	Target  *v2ray_core_common_net2.Endpoint `protobuf:"bytes,2,opt,name=target" json:"target,omitempty"`
+	Payload []byte                           `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
+}
+
+func (m *SessionFrame) Reset()                    { *m = SessionFrame{} }
+func (m *SessionFrame) String() string            { return proto.CompactTextString(m) }
+func (*SessionFrame) ProtoMessage()               {}
+func (*SessionFrame) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} }
+
+func (m *SessionFrame) GetId() uint32 {
+	if m != nil {
+		return m.Id
+	}
+	return 0
+}
+
+func (m *SessionFrame) GetTarget() *v2ray_core_common_net2.Endpoint {
+	if m != nil {
+		return m.Target
+	}
+	return nil
+}
+
+func (m *SessionFrame) GetPayload() []byte {
+	if m != nil {
+		return m.Payload
+	}
+	return nil
+}
+
 func init() {
 	proto.RegisterType((*InboundConfig)(nil), "v2ray.core.app.proxyman.InboundConfig")
 	proto.RegisterType((*AllocationStrategy)(nil), "v2ray.core.app.proxyman.AllocationStrategy")
@@ -321,58 +386,68 @@ func init() {
 	proto.RegisterType((*OutboundConfig)(nil), "v2ray.core.app.proxyman.OutboundConfig")
 	proto.RegisterType((*SenderConfig)(nil), "v2ray.core.app.proxyman.SenderConfig")
 	proto.RegisterType((*OutboundHandlerConfig)(nil), "v2ray.core.app.proxyman.OutboundHandlerConfig")
+	proto.RegisterType((*MultiplexingConfig)(nil), "v2ray.core.app.proxyman.MultiplexingConfig")
+	proto.RegisterType((*DispatchConfig)(nil), "v2ray.core.app.proxyman.DispatchConfig")
+	proto.RegisterType((*SessionFrame)(nil), "v2ray.core.app.proxyman.SessionFrame")
 	proto.RegisterEnum("v2ray.core.app.proxyman.AllocationStrategy_Type", AllocationStrategy_Type_name, AllocationStrategy_Type_value)
 }
 
 func init() { proto.RegisterFile("v2ray.com/core/app/proxyman/config.proto", fileDescriptor0) }
 
 var fileDescriptor0 = []byte{
-	// 737 bytes of a gzipped FileDescriptorProto
-	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xb4, 0x55, 0xd1, 0x6e, 0xdb, 0x36,
-	0x14, 0x9d, 0xec, 0xc4, 0x49, 0xae, 0x13, 0xc7, 0xe3, 0xb2, 0xc4, 0xf3, 0x36, 0xc0, 0x33, 0x86,
-	0xcd, 0xd8, 0x06, 0x29, 0x73, 0x30, 0x60, 0x7b, 0xda, 0x12, 0x27, 0xc0, 0xf2, 0x90, 0xd9, 0xa3,
-	0x83, 0x3e, 0x14, 0x05, 0x04, 0x46, 0x62, 0x5c, 0xa1, 0x12, 0x29, 0x90, 0xb4, 0x13, 0xfd, 0x52,
-	0xbf, 0xa1, 0x0f, 0xfd, 0x80, 0x7e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a, 0x42, 0xe9, 0xdf, 0xab, 0x69, 0xc8, 0x13, 0x9e, 0x4a, 0xc1, 0xb8, 0xc1, 0x01,
+	0x6e, 0x4d, 0x49, 0x52, 0xe6, 0x82, 0xa4, 0xae, 0xc8, 0x3b, 0xb8, 0x5a, 0x3e, 0x7d, 0x06, 0x6f,
+	0x27, 0xa2, 0xa8, 0x3b, 0xf1, 0xd3, 0xb6, 0x3f, 0xe6, 0xd8, 0xfe, 0x91, 0x7f, 0xd8, 0xaa, 0x5e,
+	0xff, 0xda, 0x78, 0xf8, 0xfd, 0x08, 0x93, 0x32, 0x3e, 0xb2, 0x84, 0x43, 0x29, 0x7d, 0x93, 0x15,
+	0x84, 0x5f, 0xb4, 0xdc, 0xcf, 0xfb, 0xc9, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x69, 0xf1, 0x9f,
+	0x6a, 0xdf, 0x08, 0x00, 0x00,
 }

+ 15 - 0
app/proxyman/config.proto

@@ -11,6 +11,7 @@ message InboundConfig {
 
 import "v2ray.com/core/common/serial/typed_message.proto";
 import "v2ray.com/core/common/net/address.proto";
+import "v2ray.com/core/common/net/destination.proto";
 import "v2ray.com/core/common/net/port.proto";
 import "v2ray.com/core/transport/internet/config.proto";
 
@@ -79,3 +80,17 @@ message OutboundHandlerConfig {
   int64 expire = 4;
   string comment = 5;
 }
+
+message MultiplexingConfig {
+  bool enabled = 1;
+}
+
+message DispatchConfig {
+  MultiplexingConfig mux_settings = 1;
+}
+
+message SessionFrame {
+  uint32 id = 1;
+  v2ray.core.common.net.Endpoint target = 2;
+  bytes payload = 3;
+}