mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-09 03:36:40 -05:00
21 lines
325 B
Go
21 lines
325 B
Go
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)
|
|
}
|