core: v2ray.com/core/app/proxyman Index | Files | Directories

package proxyman

import "v2ray.com/core/app/proxyman"

Package proxyman defines applications for managing inbound and outbound proxies.

Index

Package Files

config.go config.pb.go proxyman.go

Variables

var AllocationStrategy_Type_name = map[int32]string{
    0:  "Always",
    1:  "Random",
    2:  "External",
}
var AllocationStrategy_Type_value = map[string]int32{
    "Always":   0,
    "Random":   1,
    "External": 2,
}
var KnownProtocols_name = map[int32]string{
    0:  "HTTP",
    1:  "TLS",
}
var KnownProtocols_value = map[string]int32{
    "HTTP": 0,
    "TLS":  1,
}

func ContextWithSniffingConfig Uses

func ContextWithSniffingConfig(ctx context.Context, c *SniffingConfig) context.Context

ContextWithSniffingConfig is a wrapper of session.ContextWithContent. Deprecated. Use session.ContextWithContent directly.

type AllocationStrategy Uses

type AllocationStrategy struct {
    Type AllocationStrategy_Type `protobuf:"varint,1,opt,name=type,proto3,enum=v2ray.core.app.proxyman.AllocationStrategy_Type" json:"type,omitempty"`
    // Number of handlers (ports) running in parallel.
    // Default value is 3 if unset.
    Concurrency *AllocationStrategy_AllocationStrategyConcurrency `protobuf:"bytes,2,opt,name=concurrency,proto3" json:"concurrency,omitempty"`
    // Number of minutes before a handler is regenerated.
    // Default value is 5 if unset.
    Refresh              *AllocationStrategy_AllocationStrategyRefresh `protobuf:"bytes,3,opt,name=refresh,proto3" json:"refresh,omitempty"`
    XXX_NoUnkeyedLiteral struct{}                                      `json:"-"`
    XXX_unrecognized     []byte                                        `json:"-"`
    XXX_sizecache        int32                                         `json:"-"`
}

func (*AllocationStrategy) Descriptor Uses

func (*AllocationStrategy) Descriptor() ([]byte, []int)

func (*AllocationStrategy) GetConcurrency Uses

func (m *AllocationStrategy) GetConcurrency() *AllocationStrategy_AllocationStrategyConcurrency

func (*AllocationStrategy) GetConcurrencyValue Uses

func (s *AllocationStrategy) GetConcurrencyValue() uint32

func (*AllocationStrategy) GetRefresh Uses

func (m *AllocationStrategy) GetRefresh() *AllocationStrategy_AllocationStrategyRefresh

func (*AllocationStrategy) GetRefreshValue Uses

func (s *AllocationStrategy) GetRefreshValue() uint32

func (*AllocationStrategy) GetType Uses

func (m *AllocationStrategy) GetType() AllocationStrategy_Type

func (*AllocationStrategy) ProtoMessage Uses

func (*AllocationStrategy) ProtoMessage()

func (*AllocationStrategy) Reset Uses

func (m *AllocationStrategy) Reset()

func (*AllocationStrategy) String Uses

func (m *AllocationStrategy) String() string

func (*AllocationStrategy) XXX_DiscardUnknown Uses

func (m *AllocationStrategy) XXX_DiscardUnknown()

func (*AllocationStrategy) XXX_Marshal Uses

func (m *AllocationStrategy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AllocationStrategy) XXX_Merge Uses

func (m *AllocationStrategy) XXX_Merge(src proto.Message)

func (*AllocationStrategy) XXX_Size Uses

func (m *AllocationStrategy) XXX_Size() int

func (*AllocationStrategy) XXX_Unmarshal Uses

func (m *AllocationStrategy) XXX_Unmarshal(b []byte) error

type AllocationStrategy_AllocationStrategyConcurrency Uses

type AllocationStrategy_AllocationStrategyConcurrency struct {
    Value                uint32   `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*AllocationStrategy_AllocationStrategyConcurrency) Descriptor Uses

func (*AllocationStrategy_AllocationStrategyConcurrency) Descriptor() ([]byte, []int)

func (*AllocationStrategy_AllocationStrategyConcurrency) GetValue Uses

func (m *AllocationStrategy_AllocationStrategyConcurrency) GetValue() uint32

func (*AllocationStrategy_AllocationStrategyConcurrency) ProtoMessage Uses

func (*AllocationStrategy_AllocationStrategyConcurrency) ProtoMessage()

func (*AllocationStrategy_AllocationStrategyConcurrency) Reset Uses

func (m *AllocationStrategy_AllocationStrategyConcurrency) Reset()

func (*AllocationStrategy_AllocationStrategyConcurrency) String Uses

func (m *AllocationStrategy_AllocationStrategyConcurrency) String() string

func (*AllocationStrategy_AllocationStrategyConcurrency) XXX_DiscardUnknown Uses

func (m *AllocationStrategy_AllocationStrategyConcurrency) XXX_DiscardUnknown()

func (*AllocationStrategy_AllocationStrategyConcurrency) XXX_Marshal Uses

func (m *AllocationStrategy_AllocationStrategyConcurrency) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AllocationStrategy_AllocationStrategyConcurrency) XXX_Merge Uses

func (m *AllocationStrategy_AllocationStrategyConcurrency) XXX_Merge(src proto.Message)

func (*AllocationStrategy_AllocationStrategyConcurrency) XXX_Size Uses

func (m *AllocationStrategy_AllocationStrategyConcurrency) XXX_Size() int

func (*AllocationStrategy_AllocationStrategyConcurrency) XXX_Unmarshal Uses

func (m *AllocationStrategy_AllocationStrategyConcurrency) XXX_Unmarshal(b []byte) error

type AllocationStrategy_AllocationStrategyRefresh Uses

type AllocationStrategy_AllocationStrategyRefresh struct {
    Value                uint32   `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*AllocationStrategy_AllocationStrategyRefresh) Descriptor Uses

func (*AllocationStrategy_AllocationStrategyRefresh) Descriptor() ([]byte, []int)

func (*AllocationStrategy_AllocationStrategyRefresh) GetValue Uses

func (m *AllocationStrategy_AllocationStrategyRefresh) GetValue() uint32

func (*AllocationStrategy_AllocationStrategyRefresh) ProtoMessage Uses

func (*AllocationStrategy_AllocationStrategyRefresh) ProtoMessage()

func (*AllocationStrategy_AllocationStrategyRefresh) Reset Uses

func (m *AllocationStrategy_AllocationStrategyRefresh) Reset()

func (*AllocationStrategy_AllocationStrategyRefresh) String Uses

func (m *AllocationStrategy_AllocationStrategyRefresh) String() string

func (*AllocationStrategy_AllocationStrategyRefresh) XXX_DiscardUnknown Uses

func (m *AllocationStrategy_AllocationStrategyRefresh) XXX_DiscardUnknown()

func (*AllocationStrategy_AllocationStrategyRefresh) XXX_Marshal Uses

func (m *AllocationStrategy_AllocationStrategyRefresh) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AllocationStrategy_AllocationStrategyRefresh) XXX_Merge Uses

func (m *AllocationStrategy_AllocationStrategyRefresh) XXX_Merge(src proto.Message)

func (*AllocationStrategy_AllocationStrategyRefresh) XXX_Size Uses

func (m *AllocationStrategy_AllocationStrategyRefresh) XXX_Size() int

func (*AllocationStrategy_AllocationStrategyRefresh) XXX_Unmarshal Uses

func (m *AllocationStrategy_AllocationStrategyRefresh) XXX_Unmarshal(b []byte) error

type AllocationStrategy_Type Uses

type AllocationStrategy_Type int32
const (
    // Always allocate all connection handlers.
    AllocationStrategy_Always AllocationStrategy_Type = 0
    // Randomly allocate specific range of handlers.
    AllocationStrategy_Random AllocationStrategy_Type = 1
    // External. Not supported yet.
    AllocationStrategy_External AllocationStrategy_Type = 2
)

func (AllocationStrategy_Type) EnumDescriptor Uses

func (AllocationStrategy_Type) EnumDescriptor() ([]byte, []int)

func (AllocationStrategy_Type) String Uses

func (x AllocationStrategy_Type) String() string

type InboundConfig Uses

type InboundConfig struct {
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*InboundConfig) Descriptor Uses

func (*InboundConfig) Descriptor() ([]byte, []int)

func (*InboundConfig) ProtoMessage Uses

func (*InboundConfig) ProtoMessage()

func (*InboundConfig) Reset Uses

func (m *InboundConfig) Reset()

func (*InboundConfig) String Uses

func (m *InboundConfig) String() string

func (*InboundConfig) XXX_DiscardUnknown Uses

func (m *InboundConfig) XXX_DiscardUnknown()

func (*InboundConfig) XXX_Marshal Uses

func (m *InboundConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InboundConfig) XXX_Merge Uses

func (m *InboundConfig) XXX_Merge(src proto.Message)

func (*InboundConfig) XXX_Size Uses

func (m *InboundConfig) XXX_Size() int

func (*InboundConfig) XXX_Unmarshal Uses

func (m *InboundConfig) XXX_Unmarshal(b []byte) error

type InboundHandlerConfig Uses

type InboundHandlerConfig struct {
    Tag                  string               `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
    ReceiverSettings     *serial.TypedMessage `protobuf:"bytes,2,opt,name=receiver_settings,json=receiverSettings,proto3" json:"receiver_settings,omitempty"`
    ProxySettings        *serial.TypedMessage `protobuf:"bytes,3,opt,name=proxy_settings,json=proxySettings,proto3" json:"proxy_settings,omitempty"`
    XXX_NoUnkeyedLiteral struct{}             `json:"-"`
    XXX_unrecognized     []byte               `json:"-"`
    XXX_sizecache        int32                `json:"-"`
}

func (*InboundHandlerConfig) Descriptor Uses

func (*InboundHandlerConfig) Descriptor() ([]byte, []int)

func (*InboundHandlerConfig) GetProxySettings Uses

func (m *InboundHandlerConfig) GetProxySettings() *serial.TypedMessage

func (*InboundHandlerConfig) GetReceiverSettings Uses

func (m *InboundHandlerConfig) GetReceiverSettings() *serial.TypedMessage

func (*InboundHandlerConfig) GetTag Uses

func (m *InboundHandlerConfig) GetTag() string

func (*InboundHandlerConfig) ProtoMessage Uses

func (*InboundHandlerConfig) ProtoMessage()

func (*InboundHandlerConfig) Reset Uses

func (m *InboundHandlerConfig) Reset()

func (*InboundHandlerConfig) String Uses

func (m *InboundHandlerConfig) String() string

func (*InboundHandlerConfig) XXX_DiscardUnknown Uses

func (m *InboundHandlerConfig) XXX_DiscardUnknown()

func (*InboundHandlerConfig) XXX_Marshal Uses

func (m *InboundHandlerConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InboundHandlerConfig) XXX_Merge Uses

func (m *InboundHandlerConfig) XXX_Merge(src proto.Message)

func (*InboundHandlerConfig) XXX_Size Uses

func (m *InboundHandlerConfig) XXX_Size() int

func (*InboundHandlerConfig) XXX_Unmarshal Uses

func (m *InboundHandlerConfig) XXX_Unmarshal(b []byte) error

type KnownProtocols Uses

type KnownProtocols int32
const (
    KnownProtocols_HTTP KnownProtocols = 0
    KnownProtocols_TLS  KnownProtocols = 1
)

func (KnownProtocols) EnumDescriptor Uses

func (KnownProtocols) EnumDescriptor() ([]byte, []int)

func (KnownProtocols) String Uses

func (x KnownProtocols) String() string

type MultiplexingConfig Uses

type MultiplexingConfig struct {
    // Whether or not Mux is enabled.
    Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
    // Max number of concurrent connections that one Mux connection can handle.
    Concurrency          uint32   `protobuf:"varint,2,opt,name=concurrency,proto3" json:"concurrency,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*MultiplexingConfig) Descriptor Uses

func (*MultiplexingConfig) Descriptor() ([]byte, []int)

func (*MultiplexingConfig) GetConcurrency Uses

func (m *MultiplexingConfig) GetConcurrency() uint32

func (*MultiplexingConfig) GetEnabled Uses

func (m *MultiplexingConfig) GetEnabled() bool

func (*MultiplexingConfig) ProtoMessage Uses

func (*MultiplexingConfig) ProtoMessage()

func (*MultiplexingConfig) Reset Uses

func (m *MultiplexingConfig) Reset()

func (*MultiplexingConfig) String Uses

func (m *MultiplexingConfig) String() string

func (*MultiplexingConfig) XXX_DiscardUnknown Uses

func (m *MultiplexingConfig) XXX_DiscardUnknown()

func (*MultiplexingConfig) XXX_Marshal Uses

func (m *MultiplexingConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MultiplexingConfig) XXX_Merge Uses

func (m *MultiplexingConfig) XXX_Merge(src proto.Message)

func (*MultiplexingConfig) XXX_Size Uses

func (m *MultiplexingConfig) XXX_Size() int

func (*MultiplexingConfig) XXX_Unmarshal Uses

func (m *MultiplexingConfig) XXX_Unmarshal(b []byte) error

type OutboundConfig Uses

type OutboundConfig struct {
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*OutboundConfig) Descriptor Uses

func (*OutboundConfig) Descriptor() ([]byte, []int)

func (*OutboundConfig) ProtoMessage Uses

func (*OutboundConfig) ProtoMessage()

func (*OutboundConfig) Reset Uses

func (m *OutboundConfig) Reset()

func (*OutboundConfig) String Uses

func (m *OutboundConfig) String() string

func (*OutboundConfig) XXX_DiscardUnknown Uses

func (m *OutboundConfig) XXX_DiscardUnknown()

func (*OutboundConfig) XXX_Marshal Uses

func (m *OutboundConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OutboundConfig) XXX_Merge Uses

func (m *OutboundConfig) XXX_Merge(src proto.Message)

func (*OutboundConfig) XXX_Size Uses

func (m *OutboundConfig) XXX_Size() int

func (*OutboundConfig) XXX_Unmarshal Uses

func (m *OutboundConfig) XXX_Unmarshal(b []byte) error

type ReceiverConfig Uses

type ReceiverConfig struct {
    // PortRange specifies the ports which the Receiver should listen on.
    PortRange *net.PortRange `protobuf:"bytes,1,opt,name=port_range,json=portRange,proto3" json:"port_range,omitempty"`
    // Listen specifies the IP address that the Receiver should listen on.
    Listen                     *net.IPOrDomain        `protobuf:"bytes,2,opt,name=listen,proto3" json:"listen,omitempty"`
    AllocationStrategy         *AllocationStrategy    `protobuf:"bytes,3,opt,name=allocation_strategy,json=allocationStrategy,proto3" json:"allocation_strategy,omitempty"`
    StreamSettings             *internet.StreamConfig `protobuf:"bytes,4,opt,name=stream_settings,json=streamSettings,proto3" json:"stream_settings,omitempty"`
    ReceiveOriginalDestination bool                   `protobuf:"varint,5,opt,name=receive_original_destination,json=receiveOriginalDestination,proto3" json:"receive_original_destination,omitempty"`
    // Override domains for the given protocol.
    // Deprecated. Use sniffing_settings.
    DomainOverride       []KnownProtocols `protobuf:"varint,7,rep,packed,name=domain_override,json=domainOverride,proto3,enum=v2ray.core.app.proxyman.KnownProtocols" json:"domain_override,omitempty"` // Deprecated: Do not use.
    SniffingSettings     *SniffingConfig  `protobuf:"bytes,8,opt,name=sniffing_settings,json=sniffingSettings,proto3" json:"sniffing_settings,omitempty"`
    XXX_NoUnkeyedLiteral struct{}         `json:"-"`
    XXX_unrecognized     []byte           `json:"-"`
    XXX_sizecache        int32            `json:"-"`
}

func (*ReceiverConfig) Descriptor Uses

func (*ReceiverConfig) Descriptor() ([]byte, []int)

func (*ReceiverConfig) GetAllocationStrategy Uses

func (m *ReceiverConfig) GetAllocationStrategy() *AllocationStrategy

func (*ReceiverConfig) GetDomainOverride Uses

func (m *ReceiverConfig) GetDomainOverride() []KnownProtocols

Deprecated: Do not use.

func (*ReceiverConfig) GetEffectiveSniffingSettings Uses

func (c *ReceiverConfig) GetEffectiveSniffingSettings() *SniffingConfig

func (*ReceiverConfig) GetListen Uses

func (m *ReceiverConfig) GetListen() *net.IPOrDomain

func (*ReceiverConfig) GetPortRange Uses

func (m *ReceiverConfig) GetPortRange() *net.PortRange

func (*ReceiverConfig) GetReceiveOriginalDestination Uses

func (m *ReceiverConfig) GetReceiveOriginalDestination() bool

func (*ReceiverConfig) GetSniffingSettings Uses

func (m *ReceiverConfig) GetSniffingSettings() *SniffingConfig

func (*ReceiverConfig) GetStreamSettings Uses

func (m *ReceiverConfig) GetStreamSettings() *internet.StreamConfig

func (*ReceiverConfig) ProtoMessage Uses

func (*ReceiverConfig) ProtoMessage()

func (*ReceiverConfig) Reset Uses

func (m *ReceiverConfig) Reset()

func (*ReceiverConfig) String Uses

func (m *ReceiverConfig) String() string

func (*ReceiverConfig) XXX_DiscardUnknown Uses

func (m *ReceiverConfig) XXX_DiscardUnknown()

func (*ReceiverConfig) XXX_Marshal Uses

func (m *ReceiverConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReceiverConfig) XXX_Merge Uses

func (m *ReceiverConfig) XXX_Merge(src proto.Message)

func (*ReceiverConfig) XXX_Size Uses

func (m *ReceiverConfig) XXX_Size() int

func (*ReceiverConfig) XXX_Unmarshal Uses

func (m *ReceiverConfig) XXX_Unmarshal(b []byte) error

type SenderConfig Uses

type SenderConfig struct {
    // Send traffic through the given IP. Only IP is allowed.
    Via                  *net.IPOrDomain        `protobuf:"bytes,1,opt,name=via,proto3" json:"via,omitempty"`
    StreamSettings       *internet.StreamConfig `protobuf:"bytes,2,opt,name=stream_settings,json=streamSettings,proto3" json:"stream_settings,omitempty"`
    ProxySettings        *internet.ProxyConfig  `protobuf:"bytes,3,opt,name=proxy_settings,json=proxySettings,proto3" json:"proxy_settings,omitempty"`
    MultiplexSettings    *MultiplexingConfig    `protobuf:"bytes,4,opt,name=multiplex_settings,json=multiplexSettings,proto3" json:"multiplex_settings,omitempty"`
    XXX_NoUnkeyedLiteral struct{}               `json:"-"`
    XXX_unrecognized     []byte                 `json:"-"`
    XXX_sizecache        int32                  `json:"-"`
}

func (*SenderConfig) Descriptor Uses

func (*SenderConfig) Descriptor() ([]byte, []int)

func (*SenderConfig) GetMultiplexSettings Uses

func (m *SenderConfig) GetMultiplexSettings() *MultiplexingConfig

func (*SenderConfig) GetProxySettings Uses

func (m *SenderConfig) GetProxySettings() *internet.ProxyConfig

func (*SenderConfig) GetStreamSettings Uses

func (m *SenderConfig) GetStreamSettings() *internet.StreamConfig

func (*SenderConfig) GetVia Uses

func (m *SenderConfig) GetVia() *net.IPOrDomain

func (*SenderConfig) ProtoMessage Uses

func (*SenderConfig) ProtoMessage()

func (*SenderConfig) Reset Uses

func (m *SenderConfig) Reset()

func (*SenderConfig) String Uses

func (m *SenderConfig) String() string

func (*SenderConfig) XXX_DiscardUnknown Uses

func (m *SenderConfig) XXX_DiscardUnknown()

func (*SenderConfig) XXX_Marshal Uses

func (m *SenderConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SenderConfig) XXX_Merge Uses

func (m *SenderConfig) XXX_Merge(src proto.Message)

func (*SenderConfig) XXX_Size Uses

func (m *SenderConfig) XXX_Size() int

func (*SenderConfig) XXX_Unmarshal Uses

func (m *SenderConfig) XXX_Unmarshal(b []byte) error

type SniffingConfig Uses

type SniffingConfig struct {
    // Whether or not to enable content sniffing on an inbound connection.
    Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
    // Override target destination if sniff'ed protocol is in the given list.
    // Supported values are "http", "tls".
    DestinationOverride  []string `protobuf:"bytes,2,rep,name=destination_override,json=destinationOverride,proto3" json:"destination_override,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*SniffingConfig) Descriptor Uses

func (*SniffingConfig) Descriptor() ([]byte, []int)

func (*SniffingConfig) GetDestinationOverride Uses

func (m *SniffingConfig) GetDestinationOverride() []string

func (*SniffingConfig) GetEnabled Uses

func (m *SniffingConfig) GetEnabled() bool

func (*SniffingConfig) ProtoMessage Uses

func (*SniffingConfig) ProtoMessage()

func (*SniffingConfig) Reset Uses

func (m *SniffingConfig) Reset()

func (*SniffingConfig) String Uses

func (m *SniffingConfig) String() string

func (*SniffingConfig) XXX_DiscardUnknown Uses

func (m *SniffingConfig) XXX_DiscardUnknown()

func (*SniffingConfig) XXX_Marshal Uses

func (m *SniffingConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SniffingConfig) XXX_Merge Uses

func (m *SniffingConfig) XXX_Merge(src proto.Message)

func (*SniffingConfig) XXX_Size Uses

func (m *SniffingConfig) XXX_Size() int

func (*SniffingConfig) XXX_Unmarshal Uses

func (m *SniffingConfig) XXX_Unmarshal(b []byte) error

Directories

PathSynopsis
command
inbound
outbound

Package proxyman imports 8 packages (graph) and is imported by 27 packages. Updated 2019-07-12. Refresh now. Tools for package owners.