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 (m *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 (m *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 (m *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.MemoryUser) error
- func (h *Handler) Close() error
- func (h *Handler) GetUser(email string) *protocol.MemoryUser
- 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,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 ¶
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) GetSecureEncryptionOnly ¶ added in v3.11.1
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) XXX_DiscardUnknown ¶ added in v3.23.1
func (m *Config) XXX_DiscardUnknown()
func (*Config) XXX_Marshal ¶ added in v3.23.1
func (*Config) XXX_Unmarshal ¶ added in v3.23.1
type DefaultConfig ¶
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 ¶
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 ¶ added in v3.23.1
func (m *DefaultConfig) XXX_DiscardUnknown()
func (*DefaultConfig) XXX_Marshal ¶ added in v3.23.1
func (m *DefaultConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DefaultConfig) XXX_Merge ¶ added in v3.23.1
func (m *DefaultConfig) XXX_Merge(src proto.Message)
func (*DefaultConfig) XXX_Size ¶ added in v3.23.1
func (m *DefaultConfig) XXX_Size() int
func (*DefaultConfig) XXX_Unmarshal ¶ added in v3.23.1
func (m *DefaultConfig) XXX_Unmarshal(b []byte) error
type DetourConfig ¶
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 ¶
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 ¶ added in v3.23.1
func (m *DetourConfig) XXX_DiscardUnknown()
func (*DetourConfig) XXX_Marshal ¶ added in v3.23.1
func (m *DetourConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DetourConfig) XXX_Merge ¶ added in v3.23.1
func (m *DetourConfig) XXX_Merge(src proto.Message)
func (*DetourConfig) XXX_Size ¶ added in v3.23.1
func (m *DetourConfig) XXX_Size() int
func (*DetourConfig) XXX_Unmarshal ¶ added in v3.23.1
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 (*Handler) Network ¶
func (*Handler) Network() net.NetworkList
Network implements proxy.Inbound.Network().
Click to show internal directories.
Click to hide internal directories.