Documentation ¶
Index ¶
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 { AllowedUsers []*protocol.User Features *FeaturesConfig Defaults *DefaultConfig DetourConfig *DetourConfig }
type DefaultConfig ¶ added in v1.9.1
type DetourConfig ¶ added in v1.9.1
type DetourConfig struct {
ToTag string
}
type Factory ¶ added in v1.17.2
type Factory struct{}
func (*Factory) Create ¶ added in v1.17.2
func (this *Factory) Create(space app.Space, rawConfig interface{}, meta *proxy.InboundHandlerMeta) (proxy.InboundHandler, error)
func (*Factory) StreamCapability ¶ added in v1.17.2
func (this *Factory) StreamCapability() internet.StreamConnectionType
type FeaturesConfig ¶ added in v1.9.1
type FeaturesConfig struct {
Detour *DetourConfig
}
type VMessInboundHandler ¶
Inbound connection handler that handles messages in VMess format.
func (*VMessInboundHandler) Close ¶ added in v1.9.1
func (this *VMessInboundHandler) Close()
func (*VMessInboundHandler) GetUser ¶ added in v1.9.1
func (this *VMessInboundHandler) GetUser(email string) *protocol.User
func (*VMessInboundHandler) HandleConnection ¶
func (this *VMessInboundHandler) HandleConnection(connection internet.Connection)
func (*VMessInboundHandler) Port ¶ added in v1.9.1
func (this *VMessInboundHandler) Port() v2net.Port
func (*VMessInboundHandler) Start ¶ added in v1.17.2
func (this *VMessInboundHandler) Start() error
Click to show internal directories.
Click to hide internal directories.