receiver

package
v2.14.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllocationStrategy_Type_name = map[int32]string{
	0: "Always",
	1: "Random",
	2: "External",
}
View Source
var AllocationStrategy_Type_value = map[string]int32{
	"Always":   0,
	"Random":   1,
	"External": 2,
}

Functions

This section is empty.

Types

type AllocationStrategy

type AllocationStrategy struct {
	Type AllocationStrategy_Type `protobuf:"varint,1,opt,name=type,enum=v2ray.core.app.receiver.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" 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" json:"refresh,omitempty"`
}

func (*AllocationStrategy) Descriptor

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

func (*AllocationStrategy) GetConcurrency

func (*AllocationStrategy) GetRefresh

func (*AllocationStrategy) GetType

func (*AllocationStrategy) ProtoMessage

func (*AllocationStrategy) ProtoMessage()

func (*AllocationStrategy) Reset

func (m *AllocationStrategy) Reset()

func (*AllocationStrategy) String

func (m *AllocationStrategy) String() string

type AllocationStrategy_AllocationStrategyConcurrency

type AllocationStrategy_AllocationStrategyConcurrency struct {
	Value uint32 `protobuf:"varint,1,opt,name=value" json:"value,omitempty"`
}

func (*AllocationStrategy_AllocationStrategyConcurrency) Descriptor

func (*AllocationStrategy_AllocationStrategyConcurrency) GetValue

func (*AllocationStrategy_AllocationStrategyConcurrency) ProtoMessage

func (*AllocationStrategy_AllocationStrategyConcurrency) Reset

func (*AllocationStrategy_AllocationStrategyConcurrency) String

type AllocationStrategy_AllocationStrategyRefresh

type AllocationStrategy_AllocationStrategyRefresh struct {
	Value uint32 `protobuf:"varint,1,opt,name=value" json:"value,omitempty"`
}

func (*AllocationStrategy_AllocationStrategyRefresh) Descriptor

func (*AllocationStrategy_AllocationStrategyRefresh) GetValue

func (*AllocationStrategy_AllocationStrategyRefresh) ProtoMessage

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

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

func (AllocationStrategy_Type) String

func (x AllocationStrategy_Type) String() string

type Config

type Config struct {
	Settings []*PerProxyConfig `protobuf:"bytes,1,rep,name=settings" json:"settings,omitempty"`
}

func (*Config) Descriptor

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

func (*Config) GetSettings

func (m *Config) GetSettings() []*PerProxyConfig

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) Reset

func (m *Config) Reset()

func (*Config) String

func (m *Config) String() string

type DatagramReceiverConfig

type DatagramReceiverConfig struct {
	PortRange          *v2ray_core_common_net1.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"`
}

func (*DatagramReceiverConfig) Descriptor

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

func (*DatagramReceiverConfig) GetAllocationStrategy

func (m *DatagramReceiverConfig) GetAllocationStrategy() *AllocationStrategy

func (*DatagramReceiverConfig) GetListen

func (*DatagramReceiverConfig) GetPortRange

func (*DatagramReceiverConfig) ProtoMessage

func (*DatagramReceiverConfig) ProtoMessage()

func (*DatagramReceiverConfig) Reset

func (m *DatagramReceiverConfig) Reset()

func (*DatagramReceiverConfig) String

func (m *DatagramReceiverConfig) String() string

type PerProxyConfig

type PerProxyConfig struct {
	Tag      string                                   `protobuf:"bytes,1,opt,name=tag" json:"tag,omitempty"`
	Settings []*v2ray_core_common_serial.TypedMessage `protobuf:"bytes,2,rep,name=settings" json:"settings,omitempty"`
}

func (*PerProxyConfig) Descriptor

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

func (*PerProxyConfig) GetSettings

func (*PerProxyConfig) GetTag

func (m *PerProxyConfig) GetTag() string

func (*PerProxyConfig) ProtoMessage

func (*PerProxyConfig) ProtoMessage()

func (*PerProxyConfig) Reset

func (m *PerProxyConfig) Reset()

func (*PerProxyConfig) String

func (m *PerProxyConfig) String() string

type StreamReceiver

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

func (*StreamReceiver) Start

func (r *StreamReceiver) Start()

type StreamReceiverConfig

type StreamReceiverConfig struct {
	PortRange          *v2ray_core_common_net1.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"`
}

func (*StreamReceiverConfig) Descriptor

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

func (*StreamReceiverConfig) GetAllocationStrategy

func (m *StreamReceiverConfig) GetAllocationStrategy() *AllocationStrategy

func (*StreamReceiverConfig) GetListen

func (*StreamReceiverConfig) GetPortRange

func (*StreamReceiverConfig) GetStreamSettings

func (*StreamReceiverConfig) ProtoMessage

func (*StreamReceiverConfig) ProtoMessage()

func (*StreamReceiverConfig) Reset

func (m *StreamReceiverConfig) Reset()

func (*StreamReceiverConfig) String

func (m *StreamReceiverConfig) String() string

Jump to

Keyboard shortcuts

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