core: v2ray.com/core/proxy/dokodemo Index | Files

package dokodemo

import "v2ray.com/core/proxy/dokodemo"

Index

Package Files

config.go config.pb.go dokodemo.go errors.generated.go

type Config Uses

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"`
    // List of networks that the Dokodemo accepts.
    // Deprecated. Use networks.
    NetworkList *net.NetworkList `protobuf:"bytes,3,opt,name=network_list,json=networkList,proto3" json:"network_list,omitempty"` // Deprecated: Do not use.
    // List of networks that the Dokodemo accepts.
    Networks             []net.Network `protobuf:"varint,7,rep,packed,name=networks,proto3,enum=v2ray.core.common.net.Network" json:"networks,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 Uses

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

func (*Config) GetAddress Uses

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

func (*Config) GetFollowRedirect Uses

func (m *Config) GetFollowRedirect() bool

func (*Config) GetNetworkList Uses

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

Deprecated: Do not use.

func (*Config) GetNetworks Uses

func (m *Config) GetNetworks() []net.Network

func (*Config) GetPort Uses

func (m *Config) GetPort() uint32

func (*Config) GetPredefinedAddress Uses

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

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

func (*Config) GetTimeout Uses

func (m *Config) GetTimeout() uint32

Deprecated: Do not use.

func (*Config) GetUserLevel Uses

func (m *Config) GetUserLevel() uint32

func (*Config) ProtoMessage Uses

func (*Config) ProtoMessage()

func (*Config) Reset Uses

func (m *Config) Reset()

func (*Config) String Uses

func (m *Config) String() string

func (*Config) XXX_DiscardUnknown Uses

func (m *Config) XXX_DiscardUnknown()

func (*Config) XXX_Marshal Uses

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

func (*Config) XXX_Merge Uses

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

func (*Config) XXX_Size Uses

func (m *Config) XXX_Size() int

func (*Config) XXX_Unmarshal Uses

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

type DokodemoDoor Uses

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

func (*DokodemoDoor) Init Uses

func (d *DokodemoDoor) Init(config *Config, pm policy.Manager) error

Init initializes the DokodemoDoor instance with necessary parameters.

func (*DokodemoDoor) Network Uses

func (d *DokodemoDoor) Network() []net.Network

Network implements proxy.Inbound.

func (*DokodemoDoor) Process Uses

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

Process implements proxy.Inbound.

Package dokodemo imports 18 packages (graph) and is imported by 7 packages. Updated 2019-03-17. Refresh now. Tools for package owners.