vmess

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 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

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

VMessInboundConfig is

type VMessInboundHandler

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

func NewVMessInboundHandler

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

func (*VMessInboundHandler) AcceptConnections

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

func (*VMessInboundHandler) HandleConnection

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

func (*VMessInboundHandler) Listen

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

type VMessInboundHandlerFactory

type VMessInboundHandlerFactory struct {
}

func (*VMessInboundHandlerFactory) Create

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

type VMessOutboundConfig

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

type VMessOutboundHandler

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

func NewVMessOutboundHandler

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

func (*VMessOutboundHandler) Start

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

type VMessOutboundHandlerFactory

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

func (*VMessOutboundHandlerFactory) Create

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

func (*VMessOutboundHandlerFactory) Initialize

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

type VMessUser

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

VMessUser is an authenticated user account in VMess configuration.

func (*VMessUser) ToUser

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

type VNextConfig

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

func (VNextConfig) ToVNextServer

func (config VNextConfig) ToVNextServer() VNextServer

type VNextServer

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