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 ¶
Types ¶
type ID ¶ added in v1.1.2
type ID struct { String string Bytes [IDBytesLen]byte // contains filtered or unexported fields }
The ID of en entity, in the form of an UUID.
type UserSettings ¶ added in v1.1.2
type UserSettings struct {
PayloadReadTimeout int
}
func GetUserSettings ¶ added in v1.1.2
func GetUserSettings(level UserLevel) UserSettings
Click to show internal directories.
Click to hide internal directories.