inbound

package
v1.12.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2016 License: MIT Imports: 16 Imported by: 7 modules, 15 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 DefaultConfig struct {
	AlterIDs uint16
	Level    protocol.UserLevel
}

type DetourConfig added in v1.9.1

type DetourConfig struct {
	ToTag string
}

type FeaturesConfig added in v1.9.1

type FeaturesConfig struct {
	Detour *DetourConfig
}

type VMessInboundHandler

type VMessInboundHandler struct {
	sync.Mutex
	// contains filtered or unexported fields
}

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 *hub.Connection)

func (*VMessInboundHandler) Listen

func (this *VMessInboundHandler) Listen(port v2net.Port) error

func (*VMessInboundHandler) Port added in v1.9.1

func (this *VMessInboundHandler) Port() v2net.Port

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL