1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-11-23 12:02:58 -05:00

documentation

This commit is contained in:
V2Ray
2015-09-07 12:00:46 +02:00
parent b5a46dec8e
commit 306ae93503
5 changed files with 27 additions and 5 deletions

View File

@@ -1,14 +1,27 @@
package core
// User account that is used for connection to a VPoint
type VUser struct {
// The ID of this VUser. This ID is served as an access token.
// It is not necessary to be permanent.
id VID
}
// The next VPoint server in the connection chain.
type VNext struct {
// Address of VNext server, in the form of "IP:Port"
ServerAddress string
// User accounts for accessing VNext.
User []VUser
}
// The config for VPoint server.
type VConfig struct {
RunAs VUser
Port uint16
AllowedClients []VUser
AllowedProtocol string
// Port of this VPoint server.
Port uint16
AllowedClients []VUser
ClientProtocol string
VNextList []VNext
}
type VConfigMarshaller interface {