v2ray-core: github.com/v2ray/v2ray-core/proxy/vless/inbound Index | Files

package inbound

import "github.com/v2ray/v2ray-core/proxy/vless/inbound"

Index

Package Files

config.go config.pb.go errors.generated.go inbound.go

Variables

var File_proxy_vless_inbound_config_proto protoreflect.FileDescriptor

type Config Uses

type Config struct {
    Clients []*protocol.User `protobuf:"bytes,1,rep,name=clients,proto3" json:"clients,omitempty"`
    // Decryption settings. Only applies to server side, and only accepts "none"
    // for now.
    Decryption string      `protobuf:"bytes,2,opt,name=decryption,proto3" json:"decryption,omitempty"`
    Fallbacks  []*Fallback `protobuf:"bytes,3,rep,name=fallbacks,proto3" json:"fallbacks,omitempty"`
    // contains filtered or unexported fields
}

func (*Config) Descriptor Uses

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

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetClients Uses

func (x *Config) GetClients() []*protocol.User

func (*Config) GetDecryption Uses

func (x *Config) GetDecryption() string

func (*Config) GetFallbacks Uses

func (x *Config) GetFallbacks() []*Fallback

func (*Config) ProtoMessage Uses

func (*Config) ProtoMessage()

func (*Config) ProtoReflect Uses

func (x *Config) ProtoReflect() protoreflect.Message

func (*Config) Reset Uses

func (x *Config) Reset()

func (*Config) String Uses

func (x *Config) String() string

type Fallback Uses

type Fallback struct {
    Alpn string `protobuf:"bytes,1,opt,name=alpn,proto3" json:"alpn,omitempty"`
    Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
    Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
    Dest string `protobuf:"bytes,4,opt,name=dest,proto3" json:"dest,omitempty"`
    Xver uint64 `protobuf:"varint,5,opt,name=xver,proto3" json:"xver,omitempty"`
    // contains filtered or unexported fields
}

func (*Fallback) Descriptor Uses

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

Deprecated: Use Fallback.ProtoReflect.Descriptor instead.

func (*Fallback) GetAlpn Uses

func (x *Fallback) GetAlpn() string

func (*Fallback) GetDest Uses

func (x *Fallback) GetDest() string

func (*Fallback) GetPath Uses

func (x *Fallback) GetPath() string

func (*Fallback) GetType Uses

func (x *Fallback) GetType() string

func (*Fallback) GetXver Uses

func (x *Fallback) GetXver() uint64

func (*Fallback) ProtoMessage Uses

func (*Fallback) ProtoMessage()

func (*Fallback) ProtoReflect Uses

func (x *Fallback) ProtoReflect() protoreflect.Message

func (*Fallback) Reset Uses

func (x *Fallback) Reset()

func (*Fallback) String Uses

func (x *Fallback) String() string

type Handler Uses

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

Handler is an inbound connection handler that handles messages in VLess protocol.

func New Uses

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

New creates a new VLess inbound handler.

func (*Handler) AddUser Uses

func (h *Handler) AddUser(ctx context.Context, u *protocol.MemoryUser) error

AddUser implements proxy.UserManager.AddUser().

func (*Handler) Close Uses

func (h *Handler) Close() error

Close implements common.Closable.Close().

func (*Handler) Network Uses

func (*Handler) Network() []net.Network

Network implements proxy.Inbound.Network().

func (*Handler) Process Uses

func (h *Handler) Process(ctx context.Context, network net.Network, connection internet.Connection, dispatcher routing.Dispatcher) error

Process implements proxy.Inbound.Process().

func (*Handler) RemoveUser Uses

func (h *Handler) RemoveUser(ctx context.Context, e string) error

RemoveUser implements proxy.UserManager.RemoveUser().

Package inbound imports 30 packages (graph). Updated 2020-12-29. Refresh now. Tools for package owners.