proxyman

package
v4.0.0-...-960decf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2022 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	KnownProtocols_name = map[int32]string{
		0: "HTTP",
		1: "TLS",
	}
	KnownProtocols_value = map[string]int32{
		"HTTP": 0,
		"TLS":  1,
	}
)

Enum value maps for KnownProtocols.

View Source
var (
	DomainStrategy_name = map[int32]string{
		0: "AS_IS",
		1: "USE_IP",
		2: "USE_IP4",
		3: "USE_IP6",
	}
	DomainStrategy_value = map[string]int32{
		"AS_IS":   0,
		"USE_IP":  1,
		"USE_IP4": 2,
		"USE_IP6": 3,
	}
)

Enum value maps for DomainStrategy.

View Source
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.

View Source
var File_app_proxyman_config_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AllocationStrategy

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 deprecated

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

Deprecated: Use AllocationStrategy.ProtoReflect.Descriptor instead.

func (*AllocationStrategy) GetConcurrency

func (*AllocationStrategy) GetConcurrencyValue

func (s *AllocationStrategy) GetConcurrencyValue() uint32

func (*AllocationStrategy) GetRefresh

func (*AllocationStrategy) GetRefreshValue

func (s *AllocationStrategy) GetRefreshValue() uint32

func (*AllocationStrategy) GetType

func (*AllocationStrategy) ProtoMessage

func (*AllocationStrategy) ProtoMessage()

func (*AllocationStrategy) ProtoReflect

func (x *AllocationStrategy) ProtoReflect() protoreflect.Message

func (*AllocationStrategy) Reset

func (x *AllocationStrategy) Reset()

func (*AllocationStrategy) String

func (x *AllocationStrategy) String() string

type AllocationStrategy_AllocationStrategyConcurrency

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 deprecated

Deprecated: Use AllocationStrategy_AllocationStrategyConcurrency.ProtoReflect.Descriptor instead.

func (*AllocationStrategy_AllocationStrategyConcurrency) GetValue

func (*AllocationStrategy_AllocationStrategyConcurrency) ProtoMessage

func (*AllocationStrategy_AllocationStrategyConcurrency) ProtoReflect

func (*AllocationStrategy_AllocationStrategyConcurrency) Reset

func (*AllocationStrategy_AllocationStrategyConcurrency) String

type AllocationStrategy_AllocationStrategyRefresh

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 deprecated

Deprecated: Use AllocationStrategy_AllocationStrategyRefresh.ProtoReflect.Descriptor instead.

func (*AllocationStrategy_AllocationStrategyRefresh) GetValue

func (*AllocationStrategy_AllocationStrategyRefresh) ProtoMessage

func (*AllocationStrategy_AllocationStrategyRefresh) ProtoReflect

func (*AllocationStrategy_AllocationStrategyRefresh) Reset

func (*AllocationStrategy_AllocationStrategyRefresh) String

type AllocationStrategy_Type

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) Descriptor

func (AllocationStrategy_Type) Enum

func (AllocationStrategy_Type) EnumDescriptor deprecated

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

Deprecated: Use AllocationStrategy_Type.Descriptor instead.

func (AllocationStrategy_Type) Number

func (AllocationStrategy_Type) String

func (x AllocationStrategy_Type) String() string

func (AllocationStrategy_Type) Type

type DomainStrategy

type DomainStrategy int32
const (
	DomainStrategy_AS_IS   DomainStrategy = 0
	DomainStrategy_USE_IP  DomainStrategy = 1
	DomainStrategy_USE_IP4 DomainStrategy = 2
	DomainStrategy_USE_IP6 DomainStrategy = 3
)

func (DomainStrategy) Descriptor

func (DomainStrategy) Enum

func (x DomainStrategy) Enum() *DomainStrategy

func (DomainStrategy) EnumDescriptor deprecated

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

Deprecated: Use DomainStrategy.Descriptor instead.

func (DomainStrategy) Number

func (DomainStrategy) String

func (x DomainStrategy) String() string

func (DomainStrategy) Type

type InboundConfig

type InboundConfig struct {
	// contains filtered or unexported fields
}

func (*InboundConfig) Descriptor deprecated

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

Deprecated: Use InboundConfig.ProtoReflect.Descriptor instead.

func (*InboundConfig) ProtoMessage

func (*InboundConfig) ProtoMessage()

func (*InboundConfig) ProtoReflect

func (x *InboundConfig) ProtoReflect() protoreflect.Message

func (*InboundConfig) Reset

func (x *InboundConfig) Reset()

func (*InboundConfig) String

func (x *InboundConfig) String() string

type InboundHandlerConfig

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 deprecated

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

Deprecated: Use InboundHandlerConfig.ProtoReflect.Descriptor instead.

func (*InboundHandlerConfig) GetProxySettings

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

func (*InboundHandlerConfig) GetReceiverSettings

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

func (*InboundHandlerConfig) GetTag

func (x *InboundHandlerConfig) GetTag() string

func (*InboundHandlerConfig) ProtoMessage

func (*InboundHandlerConfig) ProtoMessage()

func (*InboundHandlerConfig) ProtoReflect

func (x *InboundHandlerConfig) ProtoReflect() protoreflect.Message

func (*InboundHandlerConfig) Reset

func (x *InboundHandlerConfig) Reset()

func (*InboundHandlerConfig) String

func (x *InboundHandlerConfig) String() string

type KnownProtocols

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

func (KnownProtocols) Descriptor

func (KnownProtocols) Enum

func (x KnownProtocols) Enum() *KnownProtocols

func (KnownProtocols) EnumDescriptor deprecated

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

Deprecated: Use KnownProtocols.Descriptor instead.

func (KnownProtocols) Number

func (KnownProtocols) String

func (x KnownProtocols) String() string

func (KnownProtocols) Type

type MultiplexingConfig

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 deprecated

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

Deprecated: Use MultiplexingConfig.ProtoReflect.Descriptor instead.

func (*MultiplexingConfig) GetConcurrency

func (x *MultiplexingConfig) GetConcurrency() uint32

func (*MultiplexingConfig) GetEnabled

func (x *MultiplexingConfig) GetEnabled() bool

func (*MultiplexingConfig) ProtoMessage

func (*MultiplexingConfig) ProtoMessage()

func (*MultiplexingConfig) ProtoReflect

func (x *MultiplexingConfig) ProtoReflect() protoreflect.Message

func (*MultiplexingConfig) Reset

func (x *MultiplexingConfig) Reset()

func (*MultiplexingConfig) String

func (x *MultiplexingConfig) String() string

type OutboundConfig

type OutboundConfig struct {
	// contains filtered or unexported fields
}

func (*OutboundConfig) Descriptor deprecated

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

Deprecated: Use OutboundConfig.ProtoReflect.Descriptor instead.

func (*OutboundConfig) ProtoMessage

func (*OutboundConfig) ProtoMessage()

func (*OutboundConfig) ProtoReflect

func (x *OutboundConfig) ProtoReflect() protoreflect.Message

func (*OutboundConfig) Reset

func (x *OutboundConfig) Reset()

func (*OutboundConfig) String

func (x *OutboundConfig) String() string

type ReceiverConfig

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                   `` /* 142-byte string literal not displayed */
	// Override domains for the given protocol.
	// Deprecated. Use sniffing_settings.
	//
	// Deprecated: Do not use.
	DomainOverride   []KnownProtocols `` /* 155-byte string literal not displayed */
	SniffingSettings *SniffingConfig  `protobuf:"bytes,8,opt,name=sniffing_settings,json=sniffingSettings,proto3" json:"sniffing_settings,omitempty"`
	// contains filtered or unexported fields
}

func (*ReceiverConfig) Descriptor deprecated

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

Deprecated: Use ReceiverConfig.ProtoReflect.Descriptor instead.

func (*ReceiverConfig) GetAllocationStrategy

func (x *ReceiverConfig) GetAllocationStrategy() *AllocationStrategy

func (*ReceiverConfig) GetDomainOverride deprecated

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

Deprecated: Do not use.

func (*ReceiverConfig) GetEffectiveSniffingSettings

func (c *ReceiverConfig) GetEffectiveSniffingSettings() *SniffingConfig

func (*ReceiverConfig) GetListen

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

func (*ReceiverConfig) GetPortRange

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

func (*ReceiverConfig) GetReceiveOriginalDestination

func (x *ReceiverConfig) GetReceiveOriginalDestination() bool

func (*ReceiverConfig) GetSniffingSettings

func (x *ReceiverConfig) GetSniffingSettings() *SniffingConfig

func (*ReceiverConfig) GetStreamSettings

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

func (*ReceiverConfig) ProtoMessage

func (*ReceiverConfig) ProtoMessage()

func (*ReceiverConfig) ProtoReflect

func (x *ReceiverConfig) ProtoReflect() protoreflect.Message

func (*ReceiverConfig) Reset

func (x *ReceiverConfig) Reset()

func (*ReceiverConfig) String

func (x *ReceiverConfig) String() string

type SenderConfig

type SenderConfig struct {
	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"`
	Via4              *net.IPOrDomain        `protobuf:"bytes,5,opt,name=via4,proto3" json:"via4,omitempty"`
	Via6              *net.IPOrDomain        `protobuf:"bytes,6,opt,name=via6,proto3" json:"via6,omitempty"`
	DomainStrategy    DomainStrategy         `` /* 148-byte string literal not displayed */
	FallbackDelayMs   int32                  `protobuf:"varint,8,opt,name=fallback_delay_ms,json=fallbackDelayMs,proto3" json:"fallback_delay_ms,omitempty"`
	// contains filtered or unexported fields
}

func (*SenderConfig) Descriptor deprecated

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

Deprecated: Use SenderConfig.ProtoReflect.Descriptor instead.

func (*SenderConfig) GetDomainStrategy

func (x *SenderConfig) GetDomainStrategy() DomainStrategy

func (*SenderConfig) GetFallbackDelayMs

func (x *SenderConfig) GetFallbackDelayMs() int32

func (*SenderConfig) GetMultiplexSettings

func (x *SenderConfig) GetMultiplexSettings() *MultiplexingConfig

func (*SenderConfig) GetProxySettings

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

func (*SenderConfig) GetStreamSettings

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

func (*SenderConfig) GetVia4

func (x *SenderConfig) GetVia4() *net.IPOrDomain

func (*SenderConfig) GetVia6

func (x *SenderConfig) GetVia6() *net.IPOrDomain

func (*SenderConfig) IsAdvanced

func (c *SenderConfig) IsAdvanced() bool

func (*SenderConfig) ProtoMessage

func (*SenderConfig) ProtoMessage()

func (*SenderConfig) ProtoReflect

func (x *SenderConfig) ProtoReflect() protoreflect.Message

func (*SenderConfig) Reset

func (x *SenderConfig) Reset()

func (*SenderConfig) String

func (x *SenderConfig) String() string

func (*SenderConfig) UseIP

func (c *SenderConfig) UseIP() bool

type SniffingConfig

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", "fakedns".
	DestinationOverride []string `protobuf:"bytes,2,rep,name=destination_override,json=destinationOverride,proto3" json:"destination_override,omitempty"`
	// Whether should only try to sniff metadata without waiting for client input.
	// Can be used to support SMTP like protocol where server send the first message.
	MetadataOnly bool `protobuf:"varint,3,opt,name=metadata_only,json=metadataOnly,proto3" json:"metadata_only,omitempty"`
	RouteOnly    bool `protobuf:"varint,4,opt,name=route_only,json=routeOnly,proto3" json:"route_only,omitempty"`
	// Don't initiate sniffer on domain destinations.
	SkipDomainDestinations bool `` /* 130-byte string literal not displayed */
	// Discard the sniffed result if the result matches any of these domains.
	SkippedDomains []string `protobuf:"bytes,6,rep,name=skipped_domains,json=skippedDomains,proto3" json:"skipped_domains,omitempty"`
	// contains filtered or unexported fields
}

func (*SniffingConfig) Descriptor deprecated

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

Deprecated: Use SniffingConfig.ProtoReflect.Descriptor instead.

func (*SniffingConfig) GetDestinationOverride

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

func (*SniffingConfig) GetEnabled

func (x *SniffingConfig) GetEnabled() bool

func (*SniffingConfig) GetMetadataOnly

func (x *SniffingConfig) GetMetadataOnly() bool

func (*SniffingConfig) GetRouteOnly

func (x *SniffingConfig) GetRouteOnly() bool

func (*SniffingConfig) GetSkipDomainDestinations

func (x *SniffingConfig) GetSkipDomainDestinations() bool

func (*SniffingConfig) GetSkippedDomains

func (x *SniffingConfig) GetSkippedDomains() []string

func (*SniffingConfig) ProtoMessage

func (*SniffingConfig) ProtoMessage()

func (*SniffingConfig) ProtoReflect

func (x *SniffingConfig) ProtoReflect() protoreflect.Message

func (*SniffingConfig) Reset

func (x *SniffingConfig) Reset()

func (*SniffingConfig) String

func (x *SniffingConfig) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL