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 ¶
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v1.1.1
type Config struct { DomainStrategy Config_DomainStrategy `` /* 127-byte string literal not displayed */ Timeout uint32 `protobuf:"varint,2,opt,name=timeout" json:"timeout,omitempty"` }
func (*Config) GetDomainStrategy ¶
func (m *Config) GetDomainStrategy() Config_DomainStrategy
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 Factory ¶
type Factory struct{}
func (*Factory) Create ¶
func (v *Factory) Create(space app.Space, config interface{}, meta *proxy.OutboundHandlerMeta) (proxy.OutboundHandler, error)
func (*Factory) StreamCapability ¶
func (v *Factory) StreamCapability() v2net.NetworkList
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) Dispatch ¶
func (v *Handler) Dispatch(destination v2net.Destination, payload *buf.Buffer, ray ray.OutboundRay)
func (*Handler) ResolveIP ¶
func (v *Handler) ResolveIP(destination v2net.Destination) v2net.Destination
Private: Visible for testing.
Click to show internal directories.
Click to hide internal directories.