vmess

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2015 License: MIT Imports: 4 Imported by: 13

Documentation

Overview

Package vmess contains the implementation of VMess protocol and transportation.

VMess contains both inbound and outbound connections. VMess inbound is usually used on servers together with 'freedom' to talk to final destination, while VMess outbound is usually used on clients with 'socks' for proxying.

Index

Constants

View Source
const (
	UserLevelAdmin     = UserLevel(999)
	UserLevelUntrusted = UserLevel(0)
)
View Source
const (
	IDBytesLen = 16
)

Variables

View Source
var (
	InvalidID = errors.New("Invalid ID.")
)

Functions

func UUIDToID added in v1.1.1

func UUIDToID(uuid string) (v [IDBytesLen]byte, err error)

TODO: leverage a full functional UUID library

Types

type ID added in v1.1.1

type ID struct {
	String string
	Bytes  [IDBytesLen]byte
	// contains filtered or unexported fields
}

The ID of en entity, in the form of an UUID.

func NewID added in v1.1.1

func NewID(id string) (*ID, error)

func (ID) CmdKey added in v1.1.1

func (v ID) CmdKey() []byte

type User added in v1.1.1

type User interface {
	ID() *ID
	Level() UserLevel
}

type UserLevel added in v1.1.1

type UserLevel int

type UserSettings added in v1.1.1

type UserSettings struct {
	PayloadReadTimeout int
}

func GetUserSettings added in v1.1.1

func GetUserSettings(level UserLevel) UserSettings

Directories

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

Jump to

Keyboard shortcuts

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