1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-07-24 14:14:35 -04:00
v2fly/common/protocol/account.go

12 lines
239 B
Go
Raw Normal View History

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