freedom

package
v2.13.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2017 License: MIT Imports: 18 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.0

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) Descriptor added in v1.1.0

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

func (*Config) GetDomainStrategy added in v1.1.0

func (m *Config) GetDomainStrategy() Config_DomainStrategy

func (*Config) GetTimeout added in v1.1.0

func (m *Config) GetTimeout() uint32

func (*Config) ProtoMessage added in v1.1.0

func (*Config) ProtoMessage()

func (*Config) Reset added in v1.1.0

func (m *Config) Reset()

func (*Config) String added in v1.1.0

func (m *Config) String() string

type Config_DomainStrategy added in v1.1.0

type Config_DomainStrategy int32
const (
	Config_AS_IS  Config_DomainStrategy = 0
	Config_USE_IP Config_DomainStrategy = 1
)

func (Config_DomainStrategy) EnumDescriptor added in v1.1.0

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

func (Config_DomainStrategy) String added in v1.1.0

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

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

func New

func New(config *Config, space app.Space, meta *proxy.OutboundHandlerMeta) *Handler

func (*Handler) Dispatch

func (v *Handler) Dispatch(destination v2net.Destination, ray ray.OutboundRay)

func (*Handler) ResolveIP

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

Private: Visible for testing.

Jump to

Keyboard shortcuts

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