1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-22 23:45:24 +00:00
v2fly/common/protocol/account.go

12 lines
239 B
Go
Raw Normal View History

2016-05-07 18:26:03 +00:00
package protocol
// Account is a user identity used for authentication.
2016-05-07 18:26:03 +00:00
type Account interface {
2016-07-24 21:22:46 +00:00
Equals(Account) bool
2016-05-07 18:26:03 +00:00
}
2016-09-17 22:41:21 +00:00
2016-12-07 12:12:42 +00:00
// AsAccount is an object can be converted into account.
2016-09-17 22:41:21 +00:00
type AsAccount interface {
AsAccount() (Account, error)
}