Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewUserByEmail ¶
func NewUserByEmail(users []*proto.User, config *DefaultConfig) *userByEmail
Types ¶
type Config ¶
type Config struct { AllowedUsers []*proto.User Features *FeaturesConfig Defaults *DefaultConfig DetourConfig *DetourConfig }
type DefaultConfig ¶
type DetourConfig ¶
type DetourConfig struct {
ToTag string
}
type FeaturesConfig ¶
type FeaturesConfig struct {
Detour *DetourConfig
}
type VMessInboundHandler ¶
Inbound connection handler that handles messages in VMess format.
func (*VMessInboundHandler) Close ¶
func (this *VMessInboundHandler) Close()
func (*VMessInboundHandler) GetUser ¶
func (this *VMessInboundHandler) GetUser(email string) *proto.User
func (*VMessInboundHandler) HandleConnection ¶
func (this *VMessInboundHandler) HandleConnection(connection *hub.Connection)
func (*VMessInboundHandler) Port ¶
func (this *VMessInboundHandler) Port() v2net.Port
Click to show internal directories.
Click to hide internal directories.