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

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"`
    XXX_NoUnkeyedLiteral struct{}         `json:"-"`
    XXX_unrecognized     []byte           `json:"-"`
    XXX_sizecache        int32            `json:"-"`
}

func (*Config) Descriptor Uses

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

func (*Config) GetDefault Uses

func (m *Config) GetDefault() *DefaultConfig

func (*Config) GetDefaultValue Uses

func (c *Config) GetDefaultValue() *DefaultConfig

GetDefaultValue returns default settings of DefaultConfig.

func (*Config) GetDetour Uses

func (m *Config) GetDetour() *DetourConfig

func (*Config) GetSecureEncryptionOnly Uses

func (m *Config) GetSecureEncryptionOnly() bool

func (*Config) GetUser Uses

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

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 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"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*DefaultConfig) Descriptor Uses

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

func (*DefaultConfig) GetAlterId Uses

func (m *DefaultConfig) GetAlterId() uint32

func (*DefaultConfig) GetLevel Uses

func (m *DefaultConfig) GetLevel() uint32

func (*DefaultConfig) ProtoMessage Uses

func (*DefaultConfig) ProtoMessage()

func (*DefaultConfig) Reset Uses

func (m *DefaultConfig) Reset()

func (*DefaultConfig) String Uses

func (m *DefaultConfig) String() string

func (*DefaultConfig) XXX_DiscardUnknown Uses

func (m *DefaultConfig) XXX_DiscardUnknown()

func (*DefaultConfig) XXX_Marshal Uses

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

func (*DefaultConfig) XXX_Merge Uses

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

func (*DefaultConfig) XXX_Size Uses

func (m *DefaultConfig) XXX_Size() int

func (*DefaultConfig) XXX_Unmarshal Uses

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

type DetourConfig Uses

type DetourConfig struct {
    To                   string   `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*DetourConfig) Descriptor Uses

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

func (*DetourConfig) GetTo Uses

func (m *DetourConfig) GetTo() string

func (*DetourConfig) ProtoMessage Uses

func (*DetourConfig) ProtoMessage()

func (*DetourConfig) Reset Uses

func (m *DetourConfig) Reset()

func (*DetourConfig) String Uses

func (m *DetourConfig) String() string

func (*DetourConfig) XXX_DiscardUnknown Uses

func (m *DetourConfig) XXX_DiscardUnknown()

func (*DetourConfig) XXX_Marshal Uses

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

func (*DetourConfig) XXX_Merge Uses

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

func (*DetourConfig) XXX_Size Uses

func (m *DetourConfig) XXX_Size() int

func (*DetourConfig) XXX_Unmarshal Uses

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

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 25 packages (graph) and is imported by 6 packages. Updated 2019-07-25. Refresh now. Tools for package owners.