mirror of https://github.com/v2ray/v2ray-core
interface for secondary id
parent
a63670311e
commit
1f584f1502
|
@ -1,5 +1,9 @@
|
||||||
package vmess
|
package vmess
|
||||||
|
|
||||||
|
import (
|
||||||
|
"time"
|
||||||
|
)
|
||||||
|
|
||||||
type UserLevel int
|
type UserLevel int
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -12,6 +16,11 @@ type User interface {
|
||||||
Level() UserLevel
|
Level() UserLevel
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type SecondaryID interface {
|
||||||
|
ID() *ID
|
||||||
|
ValidUntil() time.Time
|
||||||
|
}
|
||||||
|
|
||||||
type UserSettings struct {
|
type UserSettings struct {
|
||||||
PayloadReadTimeout int
|
PayloadReadTimeout int
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue