1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-05-30 15:59:08 -04:00
Files
v2fly/proxy/vmess/protocol/testing/static_userset.go

22 lines
497 B
Go
Raw Normal View History

2015-11-10 00:05:25 +01:00
package mocks
import (
proto "github.com/v2ray/v2ray-core/common/protocol"
2015-12-12 21:40:16 +01:00
"github.com/v2ray/v2ray-core/common/uuid"
2016-01-12 10:52:40 +00:00
"github.com/v2ray/v2ray-core/proxy/vmess/protocol"
2015-11-10 00:05:25 +01:00
)
type StaticUserSet struct {
}
func (us *StaticUserSet) AddUser(user *proto.User) error {
2015-11-10 00:05:25 +01:00
return nil
}
func (us *StaticUserSet) GetUser(userhash []byte) (*proto.User, protocol.Timestamp, bool) {
2015-12-12 21:40:16 +01:00
id, _ := uuid.ParseString("703e9102-eb57-499c-8b59-faf4f371bb21")
return &proto.User{
ID: proto.NewID(id),
}, 0, true
2015-11-10 00:05:25 +01:00
}