1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-26 12:07:47 -05:00
v2fly/vconfig.go

21 lines
325 B
Go
Raw Normal View History

2015-09-05 11:48:38 -04:00
package core
type VUser struct {
2015-09-06 16:10:42 -04:00
id VID
2015-09-05 11:48:38 -04:00
}
type VConfig struct {
2015-09-06 16:10:42 -04:00
RunAs VUser
Port uint16
AllowedClients []VUser
AllowedProtocol string
2015-09-05 11:48:38 -04:00
}
type VConfigMarshaller interface {
2015-09-06 16:10:42 -04:00
Marshal(config VConfig) ([]byte, error)
2015-09-05 11:48:38 -04:00
}
type VConfigUnmarshaller interface {
2015-09-06 16:10:42 -04:00
Unmarshal(data []byte) (VConfig, error)
2015-09-05 11:48:38 -04:00
}