1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-09-27 22:36:12 -04:00

interface for secondary id

This commit is contained in:
v2ray 2015-12-13 00:10:35 +01:00
parent a63670311e
commit 1f584f1502

View File

@ -1,5 +1,9 @@
package vmess
import (
"time"
)
type UserLevel int
const (
@ -12,6 +16,11 @@ type User interface {
Level() UserLevel
}
type SecondaryID interface {
ID() *ID
ValidUntil() time.Time
}
type UserSettings struct {
PayloadReadTimeout int
}