Documentation ¶
Overview ¶
Package freedom is a generated protocol buffer package.
It is generated from these files:
v2ray.com/core/proxy/freedom/config.proto
It has these top-level messages:
Config
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Config_DomainStrategy_name = map[int32]string{
0: "AS_IS",
1: "USE_IP",
}
View Source
var Config_DomainStrategy_value = map[string]int32{
"AS_IS": 0,
"USE_IP": 1,
}
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { DomainStrategy Config_DomainStrategy `` /* 131-byte string literal not displayed */ Timeout uint32 `protobuf:"varint,2,opt,name=timeout" json:"timeout,omitempty"` }
func (*Config) Descriptor ¶
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
type Config_DomainStrategy ¶
type Config_DomainStrategy int32
const ( Config_AS_IS Config_DomainStrategy = 0 Config_USE_IP Config_DomainStrategy = 1 )
func (Config_DomainStrategy) EnumDescriptor ¶
func (Config_DomainStrategy) EnumDescriptor() ([]byte, []int)
func (Config_DomainStrategy) String ¶
func (x Config_DomainStrategy) String() string
type FreedomConnection ¶ added in v0.6.1
type FreedomConnection struct {
// contains filtered or unexported fields
}
func NewFreedomConnection ¶ added in v0.6.1
func NewFreedomConnection(config *Config, space app.Space, meta *proxy.OutboundHandlerMeta) *FreedomConnection
func (*FreedomConnection) Dispatch ¶ added in v0.9.1
func (this *FreedomConnection) Dispatch(destination v2net.Destination, payload *alloc.Buffer, ray ray.OutboundRay) error
func (*FreedomConnection) ResolveIP ¶ added in v1.17.1
func (this *FreedomConnection) ResolveIP(destination v2net.Destination) v2net.Destination
Private: Visible for testing.
type FreedomFactory ¶ added in v0.6.1
type FreedomFactory struct{}
func (*FreedomFactory) Create ¶ added in v0.6.1
func (this *FreedomFactory) Create(space app.Space, config interface{}, meta *proxy.OutboundHandlerMeta) (proxy.OutboundHandler, error)
func (*FreedomFactory) StreamCapability ¶ added in v1.17.1
func (this *FreedomFactory) StreamCapability() internet.StreamConnectionType
Click to show internal directories.
Click to hide internal directories.