dokodemo

package
v2.22.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2017 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v1.1.0

type Config struct {
	Address        *v2ray_core_common_net.IPOrDomain   `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"`
	Port           uint32                              `protobuf:"varint,2,opt,name=port" json:"port,omitempty"`
	NetworkList    *v2ray_core_common_net1.NetworkList `protobuf:"bytes,3,opt,name=network_list,json=networkList" json:"network_list,omitempty"`
	Timeout        uint32                              `protobuf:"varint,4,opt,name=timeout" json:"timeout,omitempty"`
	FollowRedirect bool                                `protobuf:"varint,5,opt,name=follow_redirect,json=followRedirect" json:"follow_redirect,omitempty"`
}

func (*Config) Descriptor added in v1.1.0

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

func (*Config) GetAddress added in v1.1.0

func (m *Config) GetAddress() *v2ray_core_common_net.IPOrDomain

func (*Config) GetFollowRedirect added in v1.1.0

func (m *Config) GetFollowRedirect() bool

func (*Config) GetNetworkList added in v1.1.0

func (m *Config) GetNetworkList() *v2ray_core_common_net1.NetworkList

func (*Config) GetPort added in v1.1.0

func (m *Config) GetPort() uint32

func (*Config) GetPredefinedAddress added in v1.1.0

func (v *Config) GetPredefinedAddress() net.Address

GetPredefinedAddress returns the defined address from proto config. Null if address is not valid.

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 DokodemoDoor

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

func New

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

func (*DokodemoDoor) Network

func (d *DokodemoDoor) Network() net.NetworkList

func (*DokodemoDoor) Process

func (d *DokodemoDoor) Process(ctx context.Context, network net.Network, conn internet.Connection, dispatcher dispatcher.Interface) error

Jump to

Keyboard shortcuts

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