account.go 239 B

1234567891011
  1. package protocol
  2. // Account is a user identity used for authentication.
  3. type Account interface {
  4. Equals(Account) bool
  5. }
  6. // AsAccount is an object can be converted into account.
  7. type AsAccount interface {
  8. AsAccount() (Account, error)
  9. }