Documentation ¶
Overview ¶
Package inbound is a generated protocol buffer package.
It is generated from these files:
v2ray.com/core/proxy/vmess/inbound/config.proto
It has these top-level messages:
DetourConfig DefaultConfig Config
Index ¶
- func NewUserByEmail(users []*protocol.User, config *DefaultConfig) *userByEmail
- type Config
- func (*Config) Descriptor() ([]byte, []int)
- func (m *Config) GetDefault() *DefaultConfig
- func (v *Config) GetDefaultValue() *DefaultConfig
- func (m *Config) GetDetour() *DetourConfig
- func (m *Config) GetUser() []*v2ray_core_common_protocol.User
- func (*Config) ProtoMessage()
- func (m *Config) Reset()
- func (m *Config) String() string
- type DefaultConfig
- type DetourConfig
- type Factory
- type VMessInboundHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewUserByEmail ¶ added in v1.9.1
func NewUserByEmail(users []*protocol.User, config *DefaultConfig) *userByEmail
Types ¶
type Config ¶
type Config struct { User []*v2ray_core_common_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"` }
func (*Config) Descriptor ¶
func (*Config) GetDefault ¶
func (m *Config) GetDefault() *DefaultConfig
func (*Config) GetDefaultValue ¶
func (v *Config) GetDefaultValue() *DefaultConfig
GetDefaultValue returns default settings of DefaultConfig.
func (*Config) GetDetour ¶
func (m *Config) GetDetour() *DetourConfig
func (*Config) GetUser ¶
func (m *Config) GetUser() []*v2ray_core_common_protocol.User
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
type DefaultConfig ¶
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"` }
func (*DefaultConfig) Descriptor ¶
func (*DefaultConfig) Descriptor() ([]byte, []int)
func (*DefaultConfig) ProtoMessage ¶
func (*DefaultConfig) ProtoMessage()
func (*DefaultConfig) Reset ¶
func (m *DefaultConfig) Reset()
func (*DefaultConfig) String ¶
func (m *DefaultConfig) String() string
type DetourConfig ¶
type DetourConfig struct {
To string `protobuf:"bytes,1,opt,name=to" json:"to,omitempty"`
}
func (*DetourConfig) Descriptor ¶
func (*DetourConfig) Descriptor() ([]byte, []int)
func (*DetourConfig) ProtoMessage ¶
func (*DetourConfig) ProtoMessage()
func (*DetourConfig) Reset ¶
func (m *DetourConfig) Reset()
func (*DetourConfig) String ¶
func (m *DetourConfig) String() string
type Factory ¶ added in v1.17.1
type Factory struct{}
func (*Factory) Create ¶ added in v1.17.1
func (v *Factory) Create(space app.Space, rawConfig interface{}, meta *proxy.InboundHandlerMeta) (proxy.InboundHandler, error)
func (*Factory) StreamCapability ¶ added in v1.17.1
func (v *Factory) StreamCapability() v2net.NetworkList
type VMessInboundHandler ¶ added in v1.1.1
Inbound connection handler that handles messages in VMess format.
func (*VMessInboundHandler) Close ¶ added in v1.9.1
func (v *VMessInboundHandler) Close()
func (*VMessInboundHandler) GetUser ¶ added in v1.9.1
func (v *VMessInboundHandler) GetUser(email string) *protocol.User
func (*VMessInboundHandler) HandleConnection ¶ added in v1.1.1
func (v *VMessInboundHandler) HandleConnection(connection internet.Connection)
func (*VMessInboundHandler) Port ¶ added in v1.9.1
func (v *VMessInboundHandler) Port() v2net.Port
func (*VMessInboundHandler) Start ¶ added in v1.17.1
func (v *VMessInboundHandler) Start() error
Click to show internal directories.
Click to hide internal directories.