Documentation ¶
Index ¶
- Variables
- type Bridge
- type BridgeConfig
- func (*BridgeConfig) Descriptor() ([]byte, []int)
- func (m *BridgeConfig) GetDomain() string
- func (m *BridgeConfig) GetTag() string
- func (*BridgeConfig) ProtoMessage()
- func (m *BridgeConfig) Reset()
- func (m *BridgeConfig) String() string
- func (m *BridgeConfig) XXX_DiscardUnknown()
- func (m *BridgeConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BridgeConfig) XXX_Merge(src proto.Message)
- func (m *BridgeConfig) XXX_Size() int
- func (m *BridgeConfig) XXX_Unmarshal(b []byte) error
- type BridgeWorker
- type Config
- func (*Config) Descriptor() ([]byte, []int)
- func (m *Config) GetBridgeConfig() []*BridgeConfig
- func (m *Config) GetPortalConfig() []*PortalConfig
- func (*Config) ProtoMessage()
- func (m *Config) Reset()
- func (m *Config) String() string
- func (m *Config) XXX_DiscardUnknown()
- func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Config) XXX_Merge(src proto.Message)
- func (m *Config) XXX_Size() int
- func (m *Config) XXX_Unmarshal(b []byte) error
- type Control
- func (*Control) Descriptor() ([]byte, []int)
- func (c *Control) FillInRandom()
- func (m *Control) GetRandom() []byte
- func (m *Control) GetState() Control_State
- func (*Control) ProtoMessage()
- func (m *Control) Reset()
- func (m *Control) String() string
- func (m *Control) XXX_DiscardUnknown()
- func (m *Control) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Control) XXX_Merge(src proto.Message)
- func (m *Control) XXX_Size() int
- func (m *Control) XXX_Unmarshal(b []byte) error
- type Control_State
- type Outbound
- type Portal
- type PortalConfig
- func (*PortalConfig) Descriptor() ([]byte, []int)
- func (m *PortalConfig) GetDomain() string
- func (m *PortalConfig) GetTag() string
- func (*PortalConfig) ProtoMessage()
- func (m *PortalConfig) Reset()
- func (m *PortalConfig) String() string
- func (m *PortalConfig) XXX_DiscardUnknown()
- func (m *PortalConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PortalConfig) XXX_Merge(src proto.Message)
- func (m *PortalConfig) XXX_Size() int
- func (m *PortalConfig) XXX_Unmarshal(b []byte) error
- type PortalWorker
- type Reverse
- type StaticMuxPicker
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Bridge ¶
type Bridge struct {
// contains filtered or unexported fields
}
func NewBridge ¶
func NewBridge(config *BridgeConfig, dispatcher routing.Dispatcher) (*Bridge, error)
type BridgeConfig ¶
type BridgeConfig struct { Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"` Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BridgeConfig) Descriptor ¶
func (*BridgeConfig) Descriptor() ([]byte, []int)
func (*BridgeConfig) GetDomain ¶
func (m *BridgeConfig) GetDomain() string
func (*BridgeConfig) GetTag ¶
func (m *BridgeConfig) GetTag() string
func (*BridgeConfig) ProtoMessage ¶
func (*BridgeConfig) ProtoMessage()
func (*BridgeConfig) Reset ¶
func (m *BridgeConfig) Reset()
func (*BridgeConfig) String ¶
func (m *BridgeConfig) String() string
func (*BridgeConfig) XXX_DiscardUnknown ¶
func (m *BridgeConfig) XXX_DiscardUnknown()
func (*BridgeConfig) XXX_Marshal ¶
func (m *BridgeConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BridgeConfig) XXX_Merge ¶
func (m *BridgeConfig) XXX_Merge(src proto.Message)
func (*BridgeConfig) XXX_Size ¶
func (m *BridgeConfig) XXX_Size() int
func (*BridgeConfig) XXX_Unmarshal ¶
func (m *BridgeConfig) XXX_Unmarshal(b []byte) error
type BridgeWorker ¶
type BridgeWorker struct {
// contains filtered or unexported fields
}
func NewBridgeWorker ¶
func NewBridgeWorker(domain string, tag string, d routing.Dispatcher) (*BridgeWorker, error)
func (*BridgeWorker) Close ¶
func (w *BridgeWorker) Close() error
func (*BridgeWorker) Connections ¶
func (w *BridgeWorker) Connections() uint32
func (*BridgeWorker) Dispatch ¶
func (w *BridgeWorker) Dispatch(ctx context.Context, dest net.Destination) (*vio.Link, error)
func (*BridgeWorker) IsActive ¶
func (w *BridgeWorker) IsActive() bool
func (*BridgeWorker) Start ¶
func (w *BridgeWorker) Start() error
func (*BridgeWorker) Type ¶
func (w *BridgeWorker) Type() interface{}
type Config ¶
type Config struct { BridgeConfig []*BridgeConfig `protobuf:"bytes,1,rep,name=bridge_config,json=bridgeConfig,proto3" json:"bridge_config,omitempty"` PortalConfig []*PortalConfig `protobuf:"bytes,2,rep,name=portal_config,json=portalConfig,proto3" json:"portal_config,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Config) GetBridgeConfig ¶
func (m *Config) GetBridgeConfig() []*BridgeConfig
func (*Config) GetPortalConfig ¶
func (m *Config) GetPortalConfig() []*PortalConfig
func (*Config) XXX_Marshal ¶
type Control ¶
type Control struct { State Control_State `protobuf:"varint,1,opt,name=state,proto3,enum=v2ray.core.app.reverse.Control_State" json:"state,omitempty"` Random []byte `protobuf:"bytes,99,opt,name=random,proto3" json:"random,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Control) GetState ¶
func (m *Control) GetState() Control_State
func (*Control) XXX_Marshal ¶
type Control_State ¶
type Control_State int32
const ( Control_ACTIVE Control_State = 0 Control_DRAIN Control_State = 1 )
func (Control_State) EnumDescriptor ¶
func (Control_State) EnumDescriptor() ([]byte, []int)
func (Control_State) String ¶
func (x Control_State) String() string
type Outbound ¶
type Outbound struct {
// contains filtered or unexported fields
}
type Portal ¶
type Portal struct {
// contains filtered or unexported fields
}
func (*Portal) HandleConnection ¶
type PortalConfig ¶
type PortalConfig struct { Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"` Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PortalConfig) Descriptor ¶
func (*PortalConfig) Descriptor() ([]byte, []int)
func (*PortalConfig) GetDomain ¶
func (m *PortalConfig) GetDomain() string
func (*PortalConfig) GetTag ¶
func (m *PortalConfig) GetTag() string
func (*PortalConfig) ProtoMessage ¶
func (*PortalConfig) ProtoMessage()
func (*PortalConfig) Reset ¶
func (m *PortalConfig) Reset()
func (*PortalConfig) String ¶
func (m *PortalConfig) String() string
func (*PortalConfig) XXX_DiscardUnknown ¶
func (m *PortalConfig) XXX_DiscardUnknown()
func (*PortalConfig) XXX_Marshal ¶
func (m *PortalConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PortalConfig) XXX_Merge ¶
func (m *PortalConfig) XXX_Merge(src proto.Message)
func (*PortalConfig) XXX_Size ¶
func (m *PortalConfig) XXX_Size() int
func (*PortalConfig) XXX_Unmarshal ¶
func (m *PortalConfig) XXX_Unmarshal(b []byte) error
type PortalWorker ¶
type PortalWorker struct {
// contains filtered or unexported fields
}
func NewPortalWorker ¶
func NewPortalWorker(client *mux.ClientWorker) (*PortalWorker, error)
func (*PortalWorker) Closed ¶
func (w *PortalWorker) Closed() bool
func (*PortalWorker) IsFull ¶
func (w *PortalWorker) IsFull() bool
type Reverse ¶
type Reverse struct {
// contains filtered or unexported fields
}
func (*Reverse) Init ¶
type StaticMuxPicker ¶
type StaticMuxPicker struct {
// contains filtered or unexported fields
}
func NewStaticMuxPicker ¶
func NewStaticMuxPicker() (*StaticMuxPicker, error)
func (*StaticMuxPicker) AddWorker ¶
func (p *StaticMuxPicker) AddWorker(worker *PortalWorker)
func (*StaticMuxPicker) PickAvailable ¶
func (p *StaticMuxPicker) PickAvailable() (*mux.ClientWorker, error)
Click to show internal directories.
Click to hide internal directories.