2016-05-07 20:26:03 +02:00
|
|
|
package protocol
|
|
|
|
|
|
2018-04-02 15:17:36 +08:00
|
|
|
// Account is a 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)
|
|
|
|
|
}
|