mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-01-06 09:15:37 -05:00
interface for secondary id
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user