Documentation ¶
Index ¶
- func NewUserByEmail(users []*protocol.User, config *DefaultConfig) *userByEmail
- type Config
- type DefaultConfig
- type DetourConfig
- type FeaturesConfig
- type VMessInboundHandler
- func (this *VMessInboundHandler) Close()
- func (this *VMessInboundHandler) GetUser(email string) *protocol.User
- func (this *VMessInboundHandler) HandleConnection(connection *hub.Connection)
- func (this *VMessInboundHandler) Listen(port v2net.Port) error
- func (this *VMessInboundHandler) Port() v2net.Port
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 ¶
type DetourConfig ¶
type DetourConfig struct {
ToTag string
}
type FeaturesConfig ¶ added in v1.9.1
type FeaturesConfig struct {
Detour *DetourConfig
}
type VMessInboundHandler ¶ added in v1.1.2
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 ¶ added in v1.1.2
func (this *VMessInboundHandler) HandleConnection(connection *hub.Connection)
func (*VMessInboundHandler) Listen ¶ added in v1.1.2
func (this *VMessInboundHandler) Listen(port v2net.Port) error
func (*VMessInboundHandler) Port ¶ added in v1.9.1
func (this *VMessInboundHandler) Port() v2net.Port
Click to show internal directories.
Click to hide internal directories.