Documentation ¶
Index ¶
- type Config
- func (*Config) Descriptor() ([]byte, []int)
- func (m *Config) GetDefault() *DefaultConfig
- func (c *Config) GetDefaultValue() *DefaultConfig
- func (m *Config) GetDetour() *DetourConfig
- func (m *Config) GetSecureEncryptionOnly() bool
- func (m *Config) GetUser() []*protocol.User
- func (*Config) ProtoMessage()
- func (m *Config) Reset()
- func (m *Config) String() string
- func (m *Config) XXX_DiscardUnknown()
- func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Config) XXX_Merge(src proto.Message)
- func (m *Config) XXX_Size() int
- func (m *Config) XXX_Unmarshal(b []byte) error
- type DefaultConfig
- func (*DefaultConfig) Descriptor() ([]byte, []int)
- func (m *DefaultConfig) GetAlterId() uint32
- func (m *DefaultConfig) GetLevel() uint32
- func (*DefaultConfig) ProtoMessage()
- func (m *DefaultConfig) Reset()
- func (m *DefaultConfig) String() string
- func (m *DefaultConfig) XXX_DiscardUnknown()
- func (m *DefaultConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *DefaultConfig) XXX_Merge(src proto.Message)
- func (m *DefaultConfig) XXX_Size() int
- func (m *DefaultConfig) XXX_Unmarshal(b []byte) error
- type DetourConfig
- func (*DetourConfig) Descriptor() ([]byte, []int)
- func (m *DetourConfig) GetTo() string
- func (*DetourConfig) ProtoMessage()
- func (m *DetourConfig) Reset()
- func (m *DetourConfig) String() string
- func (m *DetourConfig) XXX_DiscardUnknown()
- func (m *DetourConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *DetourConfig) XXX_Merge(src proto.Message)
- func (m *DetourConfig) XXX_Size() int
- func (m *DetourConfig) XXX_Unmarshal(b []byte) error
- type Handler
- func (h *Handler) AddUser(ctx context.Context, user *protocol.User) error
- func (h *Handler) Close() error
- func (h *Handler) GetUser(email string) *protocol.User
- func (*Handler) Network() net.NetworkList
- func (h *Handler) Process(ctx context.Context, network net.Network, connection internet.Connection, ...) error
- func (h *Handler) RemoveUser(ctx context.Context, email string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { User []*protocol.User `protobuf:"bytes,1,rep,name=user" json:"user,omitempty"` Default *DefaultConfig `protobuf:"bytes,2,opt,name=default" json:"default,omitempty"` Detour *DetourConfig `protobuf:"bytes,3,opt,name=detour" json:"detour,omitempty"` SecureEncryptionOnly bool `protobuf:"varint,4,opt,name=secure_encryption_only,json=secureEncryptionOnly" json:"secure_encryption_only,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Config) GetDefault ¶
func (m *Config) GetDefault() *DefaultConfig
func (*Config) GetDefaultValue ¶
func (c *Config) GetDefaultValue() *DefaultConfig
GetDefaultValue returns default settings of DefaultConfig.
func (*Config) GetDetour ¶
func (m *Config) GetDetour() *DetourConfig
func (*Config) XXX_Marshal ¶
type DefaultConfig ¶ added in v1.9.1
type DefaultConfig struct { AlterId uint32 `protobuf:"varint,1,opt,name=alter_id,json=alterId" json:"alter_id,omitempty"` Level uint32 `protobuf:"varint,2,opt,name=level" json:"level,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DefaultConfig) Descriptor ¶
func (*DefaultConfig) Descriptor() ([]byte, []int)
func (*DefaultConfig) GetAlterId ¶
func (m *DefaultConfig) GetAlterId() uint32
func (*DefaultConfig) GetLevel ¶
func (m *DefaultConfig) GetLevel() uint32
func (*DefaultConfig) ProtoMessage ¶
func (*DefaultConfig) ProtoMessage()
func (*DefaultConfig) Reset ¶
func (m *DefaultConfig) Reset()
func (*DefaultConfig) String ¶
func (m *DefaultConfig) String() string
func (*DefaultConfig) XXX_DiscardUnknown ¶
func (m *DefaultConfig) XXX_DiscardUnknown()
func (*DefaultConfig) XXX_Marshal ¶
func (m *DefaultConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DefaultConfig) XXX_Merge ¶
func (dst *DefaultConfig) XXX_Merge(src proto.Message)
func (*DefaultConfig) XXX_Size ¶
func (m *DefaultConfig) XXX_Size() int
func (*DefaultConfig) XXX_Unmarshal ¶
func (m *DefaultConfig) XXX_Unmarshal(b []byte) error
type DetourConfig ¶ added in v1.9.1
type DetourConfig struct { To string `protobuf:"bytes,1,opt,name=to" json:"to,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DetourConfig) Descriptor ¶
func (*DetourConfig) Descriptor() ([]byte, []int)
func (*DetourConfig) GetTo ¶
func (m *DetourConfig) GetTo() string
func (*DetourConfig) ProtoMessage ¶
func (*DetourConfig) ProtoMessage()
func (*DetourConfig) Reset ¶
func (m *DetourConfig) Reset()
func (*DetourConfig) String ¶
func (m *DetourConfig) String() string
func (*DetourConfig) XXX_DiscardUnknown ¶
func (m *DetourConfig) XXX_DiscardUnknown()
func (*DetourConfig) XXX_Marshal ¶
func (m *DetourConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DetourConfig) XXX_Merge ¶
func (dst *DetourConfig) XXX_Merge(src proto.Message)
func (*DetourConfig) XXX_Size ¶
func (m *DetourConfig) XXX_Size() int
func (*DetourConfig) XXX_Unmarshal ¶
func (m *DetourConfig) XXX_Unmarshal(b []byte) error
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler is an inbound connection handler that handles messages in VMess protocol.
func New ¶
New creates a new VMess inbound handler.
func (*Handler) Network ¶
func (*Handler) Network() net.NetworkList
Network implements proxy.Inbound.Network().
Click to show internal directories.
Click to hide internal directories.