dokodemo

package
v3.45.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2018 License: MIT Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v1.1.1

type Config struct {
	Address              *net.IPOrDomain  `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Port                 uint32           `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
	NetworkList          *net.NetworkList `protobuf:"bytes,3,opt,name=network_list,json=networkList,proto3" json:"network_list,omitempty"`
	Timeout              uint32           `protobuf:"varint,4,opt,name=timeout,proto3" json:"timeout,omitempty"` // Deprecated: Do not use.
	FollowRedirect       bool             `protobuf:"varint,5,opt,name=follow_redirect,json=followRedirect,proto3" json:"follow_redirect,omitempty"`
	UserLevel            uint32           `protobuf:"varint,6,opt,name=user_level,json=userLevel,proto3" json:"user_level,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*Config) Descriptor

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

func (*Config) GetAddress

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

func (*Config) GetFollowRedirect

func (m *Config) GetFollowRedirect() bool

func (*Config) GetNetworkList

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

func (*Config) GetPort

func (m *Config) GetPort() uint32

func (*Config) GetPredefinedAddress

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

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

func (*Config) GetTimeout deprecated

func (m *Config) GetTimeout() uint32

Deprecated: Do not use.

func (*Config) GetUserLevel

func (m *Config) GetUserLevel() uint32

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) Reset

func (m *Config) Reset()

func (*Config) String

func (m *Config) String() string

func (*Config) XXX_DiscardUnknown

func (m *Config) XXX_DiscardUnknown()

func (*Config) XXX_Marshal

func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Config) XXX_Merge

func (m *Config) XXX_Merge(src proto.Message)

func (*Config) XXX_Size

func (m *Config) XXX_Size() int

func (*Config) XXX_Unmarshal

func (m *Config) XXX_Unmarshal(b []byte) error

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 core.Dispatcher) error

Jump to

Keyboard shortcuts

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