1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-02-20 23:47:21 -05:00

12 lines
240 B
Go
Raw Normal View History

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