2016-05-07 18:26:03 +00:00
|
|
|
package protocol
|
|
|
|
|
2016-12-07 12:12:42 +00:00
|
|
|
// Account is an 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)
|
|
|
|
}
|