v2ray-core/vconfig.go

21 lines
325 B
Go
Raw Normal View History

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