vmess

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2015 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InfoTimeNotSync = "Please check the User ID in your vmess configuration, and make sure the time on your local and remote server are in sync."
)

Variables

This section is empty.

Functions

This section is empty.

Types

type VMessInboundConfig added in v0.6.1

type VMessInboundConfig struct {
	AllowedClients []VMessUser `json:"clients"`
}

VMessInboundConfig is

type VMessInboundHandler added in v0.6.1

type VMessInboundHandler struct {
	// contains filtered or unexported fields
}

func NewVMessInboundHandler added in v0.6.1

func NewVMessInboundHandler(vp *core.Point, clients user.UserSet) *VMessInboundHandler

func (*VMessInboundHandler) AcceptConnections added in v0.6.1

func (handler *VMessInboundHandler) AcceptConnections(listener net.Listener) error

func (*VMessInboundHandler) HandleConnection added in v0.6.1

func (handler *VMessInboundHandler) HandleConnection(connection net.Conn) error

func (*VMessInboundHandler) Listen added in v0.6.1

func (handler *VMessInboundHandler) Listen(port uint16) error

type VMessInboundHandlerFactory added in v0.6.1

type VMessInboundHandlerFactory struct {
}

func (*VMessInboundHandlerFactory) Create added in v0.6.1

func (factory *VMessInboundHandlerFactory) Create(vp *core.Point, rawConfig []byte) (core.InboundConnectionHandler, error)

type VMessOutboundConfig added in v0.6.1

type VMessOutboundConfig struct {
	VNextList []VNextConfig `json:"vnext"`
}

type VMessOutboundHandler added in v0.6.1

type VMessOutboundHandler struct {
	// contains filtered or unexported fields
}

func NewVMessOutboundHandler added in v0.6.1

func NewVMessOutboundHandler(vp *core.Point, vNextList []VNextServer, firstPacket v2net.Packet) *VMessOutboundHandler

func (*VMessOutboundHandler) Start added in v0.6.1

func (handler *VMessOutboundHandler) Start(ray core.OutboundRay) error

type VMessOutboundHandlerFactory added in v0.6.1

type VMessOutboundHandlerFactory struct {
	// contains filtered or unexported fields
}

func (*VMessOutboundHandlerFactory) Create added in v0.6.1

func (factory *VMessOutboundHandlerFactory) Create(vp *core.Point, firstPacket v2net.Packet) (core.OutboundConnectionHandler, error)

func (*VMessOutboundHandlerFactory) Initialize added in v0.6.1

func (factory *VMessOutboundHandlerFactory) Initialize(rawConfig []byte) error

type VMessUser added in v0.6.1

type VMessUser struct {
	Id    string `json:"id"`
	Email string `json:"email"`
}

VMessUser is an authenticated user account in VMess configuration.

func (*VMessUser) ToUser added in v0.6.1

func (u *VMessUser) ToUser() (user.User, error)

type VNextConfig added in v0.6.1

type VNextConfig struct {
	Address string      `json:"address"`
	Port    uint16      `json:"port"`
	Users   []VMessUser `json:"users"`
	Network string      `json:"network"`
}

func (VNextConfig) ToVNextServer added in v0.6.1

func (config VNextConfig) ToVNextServer() VNextServer

type VNextServer added in v0.6.1

type VNextServer struct {
	Destination v2net.Destination // Address of VNext server
	Users       []user.User       // User accounts for accessing VNext.
}

VNext is the next Point server in the connection chain.

Directories

Path Synopsis
Package vmess contains protocol definition, io lib for VMess.
Package vmess contains protocol definition, io lib for VMess.

Jump to

Keyboard shortcuts

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