inbound

package
v1.24.4 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2016 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUserByEmail

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

type DetourConfig

type DetourConfig struct {
	ToTag string
}

type Factory

type Factory struct{}

func (*Factory) Create

func (this *Factory) Create(space app.Space, rawConfig interface{}, meta *proxy.InboundHandlerMeta) (proxy.InboundHandler, error)

func (*Factory) StreamCapability

func (this *Factory) StreamCapability() internet.StreamConnectionType

type FeaturesConfig

type FeaturesConfig struct {
	Detour *DetourConfig
}

type VMessInboundHandler

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

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) *protocol.User

func (*VMessInboundHandler) HandleConnection

func (this *VMessInboundHandler) HandleConnection(connection internet.Connection)

func (*VMessInboundHandler) Port

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

func (*VMessInboundHandler) Start

func (this *VMessInboundHandler) Start() error

Jump to

Keyboard shortcuts

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