mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-13 14:44:15 +00:00
init
This commit is contained in:
commit
4c03bf0d45
10 files changed
+338
No files matched your search
+20
@@ -0,0 +1,20 @@
|
||||
package core
|
||||
|
||||
type VUser struct {
|
||||
id VID
|
||||
}
|
||||
|
||||
type VConfig struct {
|
||||
RunAs VUser
|
||||
Port uint16
|
||||
AllowedClients []VUser
|
||||
AllowedProtocol string
|
||||
}
|
||||
|
||||
type VConfigMarshaller interface {
|
||||
Marshal(config VConfig) ([]byte, error)
|
||||
}
|
||||
|
||||
type VConfigUnmarshaller interface {
|
||||
Unmarshal(data []byte) (VConfig, error)
|
||||
}
|
||||
Reference in new issue
Block a user