import "v2ray.com/core/app/proxyman"
Package proxyman defines applications for managing inbound and outbound proxies.
config.go config.pb.go proxyman.go
var ( KnownProtocols_name = map[int32]string{ 0: "HTTP", 1: "TLS", } KnownProtocols_value = map[string]int32{ "HTTP": 0, "TLS": 1, } )
Enum value maps for KnownProtocols.
var ( AllocationStrategy_Type_name = map[int32]string{ 0: "Always", 1: "Random", 2: "External", } AllocationStrategy_Type_value = map[string]int32{ "Always": 0, "Random": 1, "External": 2, } )
Enum value maps for AllocationStrategy_Type.
var File_app_proxyman_config_proto protoreflect.FileDescriptor
ContextWithSniffingConfig is a wrapper of session.ContextWithContent. Deprecated. Use session.ContextWithContent directly.
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"` // contains filtered or unexported fields }
func (*AllocationStrategy) Descriptor() ([]byte, []int)
Deprecated: Use AllocationStrategy.ProtoReflect.Descriptor instead.
func (x *AllocationStrategy) GetConcurrency() *AllocationStrategy_AllocationStrategyConcurrency
func (s *AllocationStrategy) GetConcurrencyValue() uint32
func (x *AllocationStrategy) GetRefresh() *AllocationStrategy_AllocationStrategyRefresh
func (s *AllocationStrategy) GetRefreshValue() uint32
func (x *AllocationStrategy) GetType() AllocationStrategy_Type
func (*AllocationStrategy) ProtoMessage()
func (x *AllocationStrategy) ProtoReflect() protoreflect.Message
func (x *AllocationStrategy) Reset()
func (x *AllocationStrategy) String() string
type AllocationStrategy_AllocationStrategyConcurrency struct { Value uint32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*AllocationStrategy_AllocationStrategyConcurrency) Descriptor() ([]byte, []int)
Deprecated: Use AllocationStrategy_AllocationStrategyConcurrency.ProtoReflect.Descriptor instead.
func (x *AllocationStrategy_AllocationStrategyConcurrency) GetValue() uint32
func (*AllocationStrategy_AllocationStrategyConcurrency) ProtoMessage()
func (x *AllocationStrategy_AllocationStrategyConcurrency) ProtoReflect() protoreflect.Message
func (x *AllocationStrategy_AllocationStrategyConcurrency) Reset()
func (x *AllocationStrategy_AllocationStrategyConcurrency) String() string
type AllocationStrategy_AllocationStrategyRefresh struct { Value uint32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*AllocationStrategy_AllocationStrategyRefresh) Descriptor() ([]byte, []int)
Deprecated: Use AllocationStrategy_AllocationStrategyRefresh.ProtoReflect.Descriptor instead.
func (x *AllocationStrategy_AllocationStrategyRefresh) GetValue() uint32
func (*AllocationStrategy_AllocationStrategyRefresh) ProtoMessage()
func (x *AllocationStrategy_AllocationStrategyRefresh) ProtoReflect() protoreflect.Message
func (x *AllocationStrategy_AllocationStrategyRefresh) Reset()
func (x *AllocationStrategy_AllocationStrategyRefresh) String() string
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) Descriptor() protoreflect.EnumDescriptor
func (x AllocationStrategy_Type) Enum() *AllocationStrategy_Type
func (AllocationStrategy_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use AllocationStrategy_Type.Descriptor instead.
func (x AllocationStrategy_Type) Number() protoreflect.EnumNumber
func (x AllocationStrategy_Type) String() string
func (AllocationStrategy_Type) Type() protoreflect.EnumType
type InboundConfig struct {
// contains filtered or unexported fields
}
func (*InboundConfig) Descriptor() ([]byte, []int)
Deprecated: Use InboundConfig.ProtoReflect.Descriptor instead.
func (*InboundConfig) ProtoMessage()
func (x *InboundConfig) ProtoReflect() protoreflect.Message
func (x *InboundConfig) Reset()
func (x *InboundConfig) String() string
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"` // contains filtered or unexported fields }
func (*InboundHandlerConfig) Descriptor() ([]byte, []int)
Deprecated: Use InboundHandlerConfig.ProtoReflect.Descriptor instead.
func (x *InboundHandlerConfig) GetProxySettings() *serial.TypedMessage
func (x *InboundHandlerConfig) GetReceiverSettings() *serial.TypedMessage
func (x *InboundHandlerConfig) GetTag() string
func (*InboundHandlerConfig) ProtoMessage()
func (x *InboundHandlerConfig) ProtoReflect() protoreflect.Message
func (x *InboundHandlerConfig) Reset()
func (x *InboundHandlerConfig) String() string
const ( KnownProtocols_HTTP KnownProtocols = 0 KnownProtocols_TLS KnownProtocols = 1 )
func (KnownProtocols) Descriptor() protoreflect.EnumDescriptor
func (x KnownProtocols) Enum() *KnownProtocols
func (KnownProtocols) EnumDescriptor() ([]byte, []int)
Deprecated: Use KnownProtocols.Descriptor instead.
func (x KnownProtocols) Number() protoreflect.EnumNumber
func (x KnownProtocols) String() string
func (KnownProtocols) Type() protoreflect.EnumType
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"` // contains filtered or unexported fields }
func (*MultiplexingConfig) Descriptor() ([]byte, []int)
Deprecated: Use MultiplexingConfig.ProtoReflect.Descriptor instead.
func (x *MultiplexingConfig) GetConcurrency() uint32
func (x *MultiplexingConfig) GetEnabled() bool
func (*MultiplexingConfig) ProtoMessage()
func (x *MultiplexingConfig) ProtoReflect() protoreflect.Message
func (x *MultiplexingConfig) Reset()
func (x *MultiplexingConfig) String() string
type OutboundConfig struct {
// contains filtered or unexported fields
}
func (*OutboundConfig) Descriptor() ([]byte, []int)
Deprecated: Use OutboundConfig.ProtoReflect.Descriptor instead.
func (*OutboundConfig) ProtoMessage()
func (x *OutboundConfig) ProtoReflect() protoreflect.Message
func (x *OutboundConfig) Reset()
func (x *OutboundConfig) String() string
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. // // Deprecated: Do not use. DomainOverride []KnownProtocols `protobuf:"varint,7,rep,packed,name=domain_override,json=domainOverride,proto3,enum=v2ray.core.app.proxyman.KnownProtocols" json:"domain_override,omitempty"` SniffingSettings *SniffingConfig `protobuf:"bytes,8,opt,name=sniffing_settings,json=sniffingSettings,proto3" json:"sniffing_settings,omitempty"` // contains filtered or unexported fields }
func (*ReceiverConfig) Descriptor() ([]byte, []int)
Deprecated: Use ReceiverConfig.ProtoReflect.Descriptor instead.
func (x *ReceiverConfig) GetAllocationStrategy() *AllocationStrategy
func (x *ReceiverConfig) GetDomainOverride() []KnownProtocols
Deprecated: Do not use.
func (c *ReceiverConfig) GetEffectiveSniffingSettings() *SniffingConfig
func (x *ReceiverConfig) GetListen() *net.IPOrDomain
func (x *ReceiverConfig) GetPortRange() *net.PortRange
func (x *ReceiverConfig) GetReceiveOriginalDestination() bool
func (x *ReceiverConfig) GetSniffingSettings() *SniffingConfig
func (x *ReceiverConfig) GetStreamSettings() *internet.StreamConfig
func (*ReceiverConfig) ProtoMessage()
func (x *ReceiverConfig) ProtoReflect() protoreflect.Message
func (x *ReceiverConfig) Reset()
func (x *ReceiverConfig) String() string
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"` // contains filtered or unexported fields }
func (*SenderConfig) Descriptor() ([]byte, []int)
Deprecated: Use SenderConfig.ProtoReflect.Descriptor instead.
func (x *SenderConfig) GetMultiplexSettings() *MultiplexingConfig
func (x *SenderConfig) GetProxySettings() *internet.ProxyConfig
func (x *SenderConfig) GetStreamSettings() *internet.StreamConfig
func (x *SenderConfig) GetVia() *net.IPOrDomain
func (*SenderConfig) ProtoMessage()
func (x *SenderConfig) ProtoReflect() protoreflect.Message
func (x *SenderConfig) Reset()
func (x *SenderConfig) String() string
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"` // contains filtered or unexported fields }
func (*SniffingConfig) Descriptor() ([]byte, []int)
Deprecated: Use SniffingConfig.ProtoReflect.Descriptor instead.
func (x *SniffingConfig) GetDestinationOverride() []string
func (x *SniffingConfig) GetEnabled() bool
func (*SniffingConfig) ProtoMessage()
func (x *SniffingConfig) ProtoReflect() protoreflect.Message
func (x *SniffingConfig) Reset()
func (x *SniffingConfig) String() string
Path | Synopsis |
---|---|
command | |
inbound | |
outbound |
Package proxyman imports 10 packages (graph) and is imported by 60 packages. Updated 2020-10-11. Refresh now. Tools for package owners.