github.com/Uhtred009/v2ray-core-1@v4.31.2+incompatible/common/protocol/account.go (about) 1 package protocol 2 3 // Account is a user identity used for authentication. 4 type Account interface { 5 Equals(Account) bool 6 } 7 8 // AsAccount is an object can be converted into account. 9 type AsAccount interface { 10 AsAccount() (Account, error) 11 }