freedom

package
v2.36.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2017 License: MIT Imports: 20 Imported by: 0

Documentation

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 added in v1.1.1

type Config struct {
	DomainStrategy      Config_DomainStrategy `` /* 149-byte string literal not displayed */
	Timeout             uint32                `protobuf:"varint,2,opt,name=timeout" json:"timeout,omitempty"`
	DestinationOverride *DestinationOverride  `protobuf:"bytes,3,opt,name=destination_override,json=destinationOverride" json:"destination_override,omitempty"`
}

func (*Config) Descriptor

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

func (*Config) GetDestinationOverride

func (m *Config) GetDestinationOverride() *DestinationOverride

func (*Config) GetDomainStrategy

func (m *Config) GetDomainStrategy() Config_DomainStrategy

func (*Config) GetTimeout

func (m *Config) GetTimeout() uint32

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) Reset

func (m *Config) Reset()

func (*Config) String

func (m *Config) String() string

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 DestinationOverride

type DestinationOverride struct {
	Server *v2ray_core_common_protocol1.ServerEndpoint `protobuf:"bytes,1,opt,name=server" json:"server,omitempty"`
}

func (*DestinationOverride) Descriptor

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

func (*DestinationOverride) GetServer

func (*DestinationOverride) ProtoMessage

func (*DestinationOverride) ProtoMessage()

func (*DestinationOverride) Reset

func (m *DestinationOverride) Reset()

func (*DestinationOverride) String

func (m *DestinationOverride) String() string

type Handler

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

func New

func New(ctx context.Context, config *Config) (*Handler, error)

func (*Handler) Process

func (v *Handler) Process(ctx context.Context, outboundRay ray.OutboundRay, dialer proxy.Dialer) error

func (*Handler) ResolveIP

func (v *Handler) ResolveIP(destination net.Destination) net.Destination

Jump to

Keyboard shortcuts

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