12 lines
239 B
Go
Raw Permalink Normal View History

2016-05-07 20:26:03 +02:00
package protocol
// 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)
}