2016-02-25 16:40:43 +01:00
|
|
|
package protocol
|
|
|
|
|
|
|
|
|
|
import (
|
2016-04-25 18:39:30 +02:00
|
|
|
"github.com/v2ray/v2ray-core/common"
|
2016-02-25 16:40:43 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type UserValidator interface {
|
2016-04-25 18:39:30 +02:00
|
|
|
common.Releasable
|
|
|
|
|
|
2016-02-25 16:40:43 +01:00
|
|
|
Add(user *User) error
|
|
|
|
|
Get(timeHash []byte) (*User, Timestamp, bool)
|
|
|
|
|
}
|