core: v2ray.com/core/proxy/vmess/inbound Index | Files

package inbound

import "v2ray.com/core/proxy/vmess/inbound"

Index

Package Files

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

Variables

var File_v2ray_com_core_proxy_vmess_inbound_config_proto protoreflect.FileDescriptor

type Config Uses

type Config struct {
    User                 []*protocol.User `protobuf:"bytes,1,rep,name=user,proto3" json:"user,omitempty"`
    Default              *DefaultConfig   `protobuf:"bytes,2,opt,name=default,proto3" json:"default,omitempty"`
    Detour               *DetourConfig    `protobuf:"bytes,3,opt,name=detour,proto3" json:"detour,omitempty"`
    SecureEncryptionOnly bool             `protobuf:"varint,4,opt,name=secure_encryption_only,json=secureEncryptionOnly,proto3" json:"secure_encryption_only,omitempty"`
    // contains filtered or unexported fields
}

func (*Config) Descriptor Uses

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

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetDefault Uses

func (x *Config) GetDefault() *DefaultConfig

func (*Config) GetDefaultValue Uses

func (c *Config) GetDefaultValue() *DefaultConfig

GetDefaultValue returns default settings of DefaultConfig.

func (*Config) GetDetour Uses

func (x *Config) GetDetour() *DetourConfig

func (*Config) GetSecureEncryptionOnly Uses

func (x *Config) GetSecureEncryptionOnly() bool

func (*Config) GetUser Uses

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

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 DefaultConfig Uses

type DefaultConfig struct {
    AlterId uint32 `protobuf:"varint,1,opt,name=alter_id,json=alterId,proto3" json:"alter_id,omitempty"`
    Level   uint32 `protobuf:"varint,2,opt,name=level,proto3" json:"level,omitempty"`
    // contains filtered or unexported fields
}

func (*DefaultConfig) Descriptor Uses

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

Deprecated: Use DefaultConfig.ProtoReflect.Descriptor instead.

func (*DefaultConfig) GetAlterId Uses

func (x *DefaultConfig) GetAlterId() uint32

func (*DefaultConfig) GetLevel Uses

func (x *DefaultConfig) GetLevel() uint32

func (*DefaultConfig) ProtoMessage Uses

func (*DefaultConfig) ProtoMessage()

func (*DefaultConfig) ProtoReflect Uses

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

func (*DefaultConfig) Reset Uses

func (x *DefaultConfig) Reset()

func (*DefaultConfig) String Uses

func (x *DefaultConfig) String() string

type DetourConfig Uses

type DetourConfig struct {
    To string `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"`
    // contains filtered or unexported fields
}

func (*DetourConfig) Descriptor Uses

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

Deprecated: Use DetourConfig.ProtoReflect.Descriptor instead.

func (*DetourConfig) GetTo Uses

func (x *DetourConfig) GetTo() string

func (*DetourConfig) ProtoMessage Uses

func (*DetourConfig) ProtoMessage()

func (*DetourConfig) ProtoReflect Uses

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

func (*DetourConfig) Reset Uses

func (x *DetourConfig) Reset()

func (*DetourConfig) String Uses

func (x *DetourConfig) String() string

type Handler Uses

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

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

func New Uses

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

New creates a new VMess inbound handler.

func (*Handler) AddUser Uses

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

func (*Handler) Close Uses

func (h *Handler) Close() error

Close implements common.Closable.

func (*Handler) GetUser Uses

func (h *Handler) GetUser(email string) *protocol.MemoryUser

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, email string) error

Package inbound imports 26 packages (graph) and is imported by 8 packages. Updated 2020-06-17. Refresh now. Tools for package owners.